- Home /
Make the Animation panel's 'record mode' record another property.
Context :
So I whipped up a rudimentary bone system consisting of a script, which upon addition to a GameObject
, displays in the scene view a handle attached to it, which is to be dragged around to achieve rotation more easily.
This script has a property HandlePosition
, which stores the position of the handle and is used to rotate the sprite accordingly. Its rotation gets updated by the script when the handle is moved.
I use it as follows : With the Animation
Panel in record mode, I drag around my handles to rotate the objects they're attached to. The changes are recorded in the animation and my rotations interpolate successfully.
Problem :
The property being recorded is HandlePosition
, not transform.rotation
. This behaviour is to be expected, since I actually change HandlePosition; but it is not the desired outcome.
I would like transform.rotation
to be recorded instead, so my animations still work if I remove the script.
Your answer
Follow this Question
Related Questions
What's wrong with animations creation? 1 Answer
Animation resetting to the muscle pose 0 Answers
Animation Bugging out 2 Answers
Unity3D Destroying animation after its played 1 Answer
Can the animation editor create local rotational data? 3 Answers