i want to have animation of aiming. i wrote my own script for it and its not working properly. every time i hold on the the right mouse button, the animation keep getting played over and over. is there a way to fix that?
here is the script.
var PlayAim = false;
gameObject.animation["Aim"].speed = -6;
Answer by VisionNext
May 18, 2014 at 10:38 AM
make sure that your aiming animation is not set to loop
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
7 People are following this question.
Mouse to control animations
Character wont stay aiming
Crouch Scale Problem!
FPSInputController and Character Animation
Click Once to play an entire animation