No Loop Time Options in Animation Inspector
Hi, When I select my animation in the Project window, there is no 'loop time' check box option in the inspector (the only option is wrap mode). This is the script I am using to play my animation upon button press, but at the moment, when I play the animation, it does not stop after 1 play and continues to loop forever.
This is the script I am using:
 var  animation_bool : boolean ;
        function Update()
                       {
            if(animation_bool == true)
                       {
                   GetComponent.<Animation>().Play("Attack1");
                       }
            if(Input.GetButtonDown("Fire1"))
                       {
                animation_bool = true;
                       }
 
               }
 
               Here is a screenshot showing the Inspector window of my animation: http://imgur.com/vYscBkG
How do I get the 'loop time' option to show, or, how do I change my script/animation so that it only plays once upon button press?
Thanks - Ethan
Answer by vfxjex · Apr 28, 2016 at 06:04 AM
your wrap mode is set to once... try changing it to loop.
Your answer
 
             Follow this Question
Related Questions
Animation Ignores Script 2 Answers
I cannot drag the animations into inspector please help [code snippet included] [C#] 0 Answers
How to Change Albedo in Main Maps By Script 1 Answer
Put a GameObject in the script's inspector when the script belongs to a prefab 1 Answer
How can I detect what animation condition an animator is in through scripting? 0 Answers