- Home /
Enforce T Pose in script
I wish Unity gave an API to have an option where you could call animator.SetPose(TPose), for example. Does that exist?
It is possible via the Editor, but I would like to call it via a C# script.
Thank you
Answer by sokkyoku · Jul 07, 2015 at 02:53 PM
Sadly this isn't possible via C#, not as easily as what you asked for at least. It's part of the numerous things that Unity has code for (since the editor can do it) but does not expose any handles for.
Maybe you could try to get access to the function behind the Editor's button by using reflection as described in this stackoverflow question. You'd have to find out somehow what this function is called and what namespace it's in though.
Also please keep in mind that even if you could directly call this function, Editor specific functionality like this will only be available inside the Editor.
If none of this works, you could programatically rotate each limb until the entire animator rig is in T-Pose i suppose.
Your answer
Follow this Question
Related Questions
How to animate a model that doesn't have arms or legs (just feet and hands) 1 Answer
is there any way to configure a generic rig? and to mask it? 0 Answers
Muscles doesnt work in the avatar creation... 2 Answers
Avatar creation asking for optionals bones 0 Answers
How do I create a generic skeleton avatar to use with mecanim? 3 Answers