I am new in Gaming platform. I played animation on a Game object on button click. But, if I want to rotate it using OnMouseDown() in script nothing happens!!! But If I disable the "Animator", then the rotation via script works!
Can anyone tell me if I can use both Animator and rotation via script or not... I am using C# script.
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
3 People are following this question.
Rotation animation keyframes problem
How to make a turn like the Temple Run and NO THING ?
Find angle between upper arm and forearm
Unity animation doesn't work after time delay or when accessed from another script?
How to assign Instantiated object through script?