- Home /
 
               Question by 
               Maya84 · Dec 23, 2014 at 04:23 PM · 
                animationjavascriptgui  
              
 
              play GUI animation from script?

Let me try to explain this step by step:
I have a gui image with a animator attached Anytime I press play the animation runs(the animation is fine)
I want to execute the animation from a script which is attached to the canvas object.
So with audio it would be something like:
 // to attach the audio file to the script
 public var mySound : AudioClip;
 // to run the audio file
 audio.Play();
I want to do the same only not audio but with a animation.
Anybody have a Idea?
 
                 
                example.jpg 
                (131.8 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Enter Trigger, play animation(s) and sound FX 1 Answer
Setting Scroll View Width GUILayout 1 Answer
Two Unity GUI questions 2 Answers
How to hook up the particle system to jump animation? 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                