Author Topic: UIProgressBar  (Read 26058 times)

skatola

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: UIProgressBar
« Reply #15 on: September 12, 2015, 06:50:06 PM »
Hi! can u help me to setup a progress bar for filling while receive a www data package?
i never did something like that :\
For now i have a scene, when i enter in it just my logo and a label "updating" appear and disappear when the downloading is finished, i want to try to use your progress bar for give a feedback to the user, so he know how much he have to wait : )

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: UIProgressBar
« Reply #16 on: September 13, 2015, 06:19:40 AM »
It's not an NGUI question. NGUI's side of it begins and ends with
  1. slider.value = www.progress;
Write a function that yields while waiting for the www to finish, and not just "yield www" but something like
  1. while (!www.isDone) { slider.value = www.progress; yield return null; }

skatola

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: UIProgressBar
« Reply #17 on: September 13, 2015, 02:17:02 PM »
thank you for your help : )