- Home /
Changing one keyframe in my animation changes all of them
I made plenty of 2d before and i never had this problem until today. I just cant figure out why. I am making an animation using the sprite renderer and changing sprites like usual in the inspector. the problem is that now changing one key changes all of them. i found a work around by dragging the sprites into the animation but now im trying to animate the color property and I can not get around this issue.
Answer by SmomoGame · Oct 19, 2016 at 02:29 AM
Do you use Animation component or Animator?
Sprite-Switching animation must be an non-Legacy animation or it may not work.Means you should use Animator and create an animation clip in it.
I don't know if it is a bug, like you cannot change color on UI element via animation directly.
im using the animator. after much struggling i found that the only way i can change a key frame without the others changing is if the red line time marker thing is on that keyframe. i guess that is what was throwing me off because im used to being able to change the sprite or color just by clicking on the key. i finally got it working for me but its not as intuitive as it used to be
i now realize that the only way the inspector changes is if i move the red timeline. its not that my other keys were changing its that the inspector was only showing what the timeline was currently on. i feel dumb lol.
it used to be that clicking a key brings up its properties in the inspector if i remember correctly?
@ Ronin6 I think you should make that an answer because it should be be up there in big letters, considering how stupid yet aggravating it is, until you find out the cause.
Thanks for the red line tip, this was really frustrating. The red line being what is active and not the keyframe you've selected with your mouse is pretty unintuitive.
Answer by asamatterof · Aug 07, 2018 at 01:47 PM
It's simpler than that. With your marking line (red/white line) away from your Keys, left-click on the Key you want to select it, before you right-click. If you just right-click, it will change all Keys in that row. Once selected, you can modify the Key individually. You will notice the selected Key as it usually turns blue.