Rotating 2D bone while animation is playing.
Hello, I've been struggling with this issue for a while and i haven't been able to figure it out.
I want to rotate my characters chest bone towards the mouse position and i have that all worked out but the issue is that when i rotate the bone the sprite doesn't follow.
I am rotating the bone in LateUpdate and it does in fact rotate to my desired position but still does nothing to my characters animation.
Any help on this issue would be great as i have been stumped for a few days...
Here's a video showing what is happening.
Answer by TravisSingleton · Jan 12 at 01:53 AM
Thanks to MarekUnity on the unity forum for his help.
The solution was to add [DefaultExecutionOrder(-2)]
example:
[DefaultExecutionOrder(-2)]
public class YourScript : MonoBehaviour
{
}
Your answer
Follow this Question
Related Questions
Simulating 2D depth in a sidescroller 0 Answers
How do I restrict the rotation of the Z axis for the "Player" to a certain extent? (2D) 0 Answers
Simulating depth on a 2D sidescroller 2 Answers
How to fix spite character changing position when turning? 1 Answer
[Normal Map on 2D Graphics] I NEED HELP! 0 Answers