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

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.