UnitPawnPostInitAnimTree
Tracking Issue: #455
Tags: pawns
Called from XComUnitPawnNativeBase.PostInitAnimTree Allows patching the animtree template before its initialized.
Issue #1514 Addendum
UnitState will always be None
This hook is called in PostInitAnimTree event function in XComUnitPawnNativeBase, which is called as part of the Spawn function
when a pawn is spawned. Because of this, UnitState will be None, Pawn has no owner or ObjectID or a XGUnit assigned to it
and you can't retrieve the state the pawn was created from.
You can fetch the archetype the pawn was created with Pawn.ObjectArchetype for some idea of pawn origins.