Quantcast
Channel: Answers for "How to trigger an iTween animation done with iTween Visual Editor via Java Script??"
Viewing all articles
Browse latest Browse all 4

Answer by dkoontz

$
0
0

To trigger an event manually you need to get a reference to the iTweenEvent and then call the Play method on that component. There is a static iTweenEvent method that helps you get your particular event.

iTweenEvent.GetEvent(theGameObjectWithTheiTweenEvent, "name of your event here").Play();

There is an example project here that shows how to do this: http://koontzfamily.org/david/iTween/PlayExample.zip


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>