Author Topic: NGUI Help  (Read 3858 times)

binsint

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
NGUI Help
« on: April 24, 2013, 03:00:02 AM »
hi, i am new to NGUI.. but i am learning gradually... how do i execute TweenAlpha once my TweenPosition is finished? i want to tween pos first then fade it out... how can i do it? thanks

alexlange

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 34
    • View Profile
Re: NGUI Help
« Reply #1 on: April 24, 2013, 03:18:23 AM »
You can find "Event Receiver" and "Can when Finished" in Tween scripts.
I didn't try this but i guess that's what you need.
Give it a try :)

binsint

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: NGUI Help
« Reply #2 on: April 24, 2013, 03:54:07 AM »
ive tried it and its giving me null error :( :( ...

binsint

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: NGUI Help
« Reply #3 on: April 24, 2013, 04:23:17 AM »
I got it! 

disable TweenAlpha on your object 1st so it wont play automatically...

and put this code on:
  1. UILabel.alpha = 1;
  2. TweenAlpha.Begin(UILabel.gameObject,float duration,float alpha);

it will play the same tween everytime this code is called...
hope it can help you guys too.. :)