Skip to content

How to set execution order of injected MonoBehaviors? #738

Closed Answered by naelstrof
naelstrof asked this question in Help and Q&A
Discussion options

You must be logged in to vote

I actually figured out I can just manually inject my update order by using the PlayerLoopSystem api. The article below taught me everything I needed to know.

https://medium.com/@thebeardphantom/unity-2018-and-playerloop-5c46a12a677

The following code is what I used to make sure my jiggle executes after all bones are done moving.

https://github.com/naelstrof/UnityJigglePhysics/blob/bcompat/Scripts/JiggleRigHandler.cs

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by naelstrof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant