- Home /
Changing Animation Rotation offset
Hi I'm new in unity and c#.I'm trying to make an aiming system which plays a rotate animation by this simple script
if (charAngle.y > 90)
{
anim.SetBool("turnright", true);
}
else
{
anim.SetBool("turnright", false);
}
but there is a problem. When the player plays the turning animation then goes back to the idle animation, the idle animation starts playing at its original rotation,not rotated one I've found a solution to this but if I try to apply this solution I'm gonna have to make 8 copies of the same animation and change their rotation offset showed in the photo. So can I change the offset value using script? Or do you have another solution to fix this
Your answer
![](https://koobas.hobune.stream/wayback/20220613001728im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Legacy Animations ignore Rotation 0 Answers
Model stays at the end of my animation D:? 0 Answers
Unity rotation bug??? or my mistake (with video) 1 Answer
Material offset per object 0 Answers
How do I rotate an animation? 1 Answer