Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

useAfterPose

useAfterPose(entity, callback): void

Calls callback each frame on the page right after the engine poses entity’s model: once its clips, its one-shots, an avatar’s aim, grip and humanoid rig have played, and before an avatar’s springs. Where a look leans the root or turns a bone over the clips, as Unity’s LateUpdate and Unreal’s Control Rig do. It works on a CharacterSpawn’s model, a VRM avatar and an Entity’s animated model. A bone turned through bone goes back to the clip’s pose before the next frame, so a turn added each frame does not add up.

Parameter Type
entity Entity
callback AfterPoseCallback

void