0
\$\begingroup\$

I'm trying to create an animation inside Unity using the animator tool, however the record tool isn't recording my changes and I'm struggling to get this to create animations.

I have created an example here: https://i.gyazo.com/91f88b3531b4fb3ffd4100d40f06bdcf.mp4

I have tried recreating the animation file, but no matter what I do it refuses to record the element?

Any information would be appreciated, as it appears unity may be bugged.

When applying an update between tweened keypoints the fields for X Y Z are red and do not apply changes

\$\endgroup\$

2 Answers 2

1
\$\begingroup\$

What you need is to add key frames to the animation.

There is a button on the right of where it says "Samples 60", a sort of diamond with a cross hair in it this is how you add key frames.

So add one key frame at the start of the animation for what position/rotation whatever the animated object starts in (which you can see in your screen shot as the diamonds in a column)

Then add another keyframe at the end with the end value you want to animate to, obviously you can add more keyframes, I would check https://docs.unity3d.com/Manual/animeditor-AnimatingAGameObject.html for a better understanding.

You also dont have to record the animations as such if you wish, you could define the first key frame with a position (0,0,0) then add another key frame and set the objects position to (0,10,0) then press play and watch it animate between start and end values.

enter image description here

\$\endgroup\$
6
  • \$\begingroup\$ Unfortunately this isn't the issue, on the terms I wanted to do frame by frame changes and not tweening the Position fields show red and then refuse to save changes \$\endgroup\$ Jan 11, 2019 at 9:31
  • \$\begingroup\$ I'm not sure the animator does anything without at least two key frames to be honest. \$\endgroup\$ Jan 11, 2019 at 9:33
  • \$\begingroup\$ Definitely has 2 key frames: i.gyazo.com/81d316f0c0ab8ef58e75a2d91535d541.mp4 \$\endgroup\$ Jan 11, 2019 at 9:42
  • \$\begingroup\$ In the GIF you posted the position changes from 0,0,0 to 0,0,0.3 units in 1 second a change so small and quick would hardly be noticeable but it is indeed moving the entire model by 0.3? Could you update the question with what you are trying to achieve with animator on the game object? \$\endgroup\$ Jan 11, 2019 at 9:46
  • \$\begingroup\$ My point is that the field is red and removes the changes. Nothing I'm doing is working, this has nothing to do with the distance amount. \$\endgroup\$ Jan 11, 2019 at 9:50
0
\$\begingroup\$

I faced this problem too. I got it to work using the auto keyframe recorder (the red dot button) on the Animation tab.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .