All right, let’s go with some super simple/silly questions:
I have this GameObject. This gameObject has an animator attached to it. It performs several things like making the gameObject spawn, despawn, and all that stuff.
In the middle of all of this, I have a “Idle” animation that keeps the object centered and with its original scale. The reasons behind the need of this animation are [still unknown to me].
My problem here is that I need to make the GameObject rotate when (and while) a user presses a button, and then make the object maintain that animation when the user stops pushing the button. So, I need to either:
Get how can I set the initial transform of a animation to a specific value.
Learn how to make the initial transform of a given animation be the current transform of the GameObject.
Maybe there’s something wrong with my “idle animation approach” (as it fixes the idle state to a specific transform), but I haven’t managed to get why or how.
: Behavior of empty state machines and idle (empty) animations - Questions & Answers - Unity Discussions