Author Topic: How to play a custom animation?  (Read 1968 times)

wijesijp

  • Guest
How to play a custom animation?
« on: June 03, 2013, 03:44:31 AM »
I am using NGUI to display a menu in my game. I am also showing players achievements as stars. I want to add some custom animation to stars. The problem I am having is I set,
 
  1. Time.timeScale = 0;

before displaying the menu. Now I can’t get anything to play !!!

I noticed that NGUI tween animations are playing. Is there a way I can use that to play a custom animation?
« Last Edit: June 03, 2013, 04:03:03 AM by wijesijp »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to play a custom animation?
« Reply #1 on: June 03, 2013, 09:29:44 AM »
Use ActiveAnimation.Play(anim) instead of anim.Play().