0
\$\begingroup\$

Lets say I have four frames A,B,C and D. In idle condition, I want the game object to repeatedly running on frame A and B . When using the method OnMouseDown, the same object change to frame C and D and OnMouseUp it return to the original frame A and B again. I'm not sure what command to look for on the internet. Would appreciate if someone can attach a link or example so I can start learning this myself.

\$\endgroup\$
2
  • \$\begingroup\$ This sounds like a job for an Animator component, and an animation control graph governing the transitions between these two animations. \$\endgroup\$ – DMGregory Oct 20 '20 at 12:21
  • \$\begingroup\$ Thanks for the comment. I will look into to it. \$\endgroup\$ – chuackt Oct 20 '20 at 12:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.