Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Adeel

Pages: [1]
1
NGUI 3 Support / Re: UIScroll Bar help
« on: September 10, 2014, 09:27:09 AM »
I figured it out just had to change some of the numbers thanks all!

2
NGUI 3 Support / UIScroll Bar help
« on: September 10, 2014, 08:58:55 AM »
Hi all,

I ma having an issue in that I am trying to create my own UIScroll bar, I have set it up in unity with different graphics and put the relevant scripts in place however every time I change the value the foreground graphic doesn't move, however the ones within ngui work. Anybody have any idea how to set this up, as I have been stuck on this for sometime now and really need to get this resolved soon. Thanks for all your help.

3
NGUI 3 Support / Re: Scroll bar help
« on: April 17, 2014, 03:34:22 AM »
Thanks for your help rain just tested it and it works!

4
NGUI 3 Support / Re: Scroll bar help
« on: April 16, 2014, 01:51:16 AM »
Thanks for the reply and sorry for the lateness of mine I've not had  a good Internet connection for the last couple of days!

Yeah the scroll bar value is 0-1 your suggestions looks about right I'll give it a go and reply when I've tested it on Thursday. Thanks again.

5
NGUI 3 Support / Scroll bar help
« on: April 14, 2014, 04:04:45 AM »
Hi guys,

I'm just after a bit of help with making a music scroll bar with ngui I have a 16 minute audio track and I am using a scroll bar to try and move it to the right point in the audio. I have it working in that it moves along with the audio however every time I move the scroll bar it always restarts the track from the beginning.
Heres the stuff I have so far:
  1. public UIScrollBar scrollBar;
  2.  
  3.         public AudioSource mainMusic;
  4.  
  5.         public float newMusicTime;
  6.  
  7.         void Update()
  8.         {
  9.                 if(AudioControllers.musicPlaying == true && AudioControllers.pauseMusic == false)
  10.                 {
  11.                         scrollBar.value += 1 / mainMusic.clip.length * Time.deltaTime;
  12.  
  13.                         if(Input.GetMouseButtonUp(0))
  14.                         {
  15.                                 mainMusic.time = scrollBar.value;
  16.  
  17.                         }
  18.                 }
  19.         }

I feel that I am close but its just not working any help would be much appreciated.

Thanks.

Pages: [1]