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.
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
160 People are following this question.
How change sprite animation texture??
Texturing custom 2d sprite
Change entire spriteSheet from animation tree
Sprite animation is not updating (possible bug)
Sprite renderer, bad perfomance on mobile