- Home /
Can i make sprite skin render after LateUpdate?
I have a sprite with a sprite skin. The joints of the sprite are controlled by an animation, but I want to control the joints in code on top of that which I do in LateUpdate(so it happens after animations are calculated). The issue is that the skin is rendered before LateUpdate it seems. The joints are therefore rotated as they should, but the sprite only shows the animation(see picture).
Is there a way to change when sprite skins are rendered?

Answer by Bjolala · Jun 27, 2020 at 11:16 AM
I figured out that the Sprite Skin uses LateUpdate, so I fixed the issue by changing the execution time of my procedural animation script to a negative value. The LateUpdate in my procedural animation script then fired before the LateUpdate of the Sprite Skin.
The execution order is found in Edit->Project Settings-> Script Execution Order.
Your answer
Follow this Question
Related Questions
Can I make animations snap to a frame? 1 Answer
Is skinning weight dependent on animations or on base model? 0 Answers
Exporting skinned objects without bones and then attach to existing bones in Unity. 0 Answers
Sharing animations with models 2 Answers
Can a sprite as an SVG Vector file be used with Unity's skeletal animation tools? 2 Answers