TransformAnimator
TransformAnimator controls named transform states on a GameObject with a
Transform Animator component. It is separate from imported skeletal
Animator, concurrent scene Animation,
and exclusive Timeline playback.
| Method | Returns | Description |
|---|---|---|
TransformAnimator.Play(gameObjectId[, state]) | boolean | Starts playback, optionally selecting a state. |
TransformAnimator.Stop(gameObjectId) | boolean | Stops playback. |
TransformAnimator.IsPlaying(gameObjectId) | boolean | Reads playback state. |
TransformAnimator.SetSpeed(gameObjectId, speed) | boolean | Sets playback multiplier. |
TransformAnimator.SetState(gameObjectId, state) | boolean | Selects an authored state. |
TransformAnimator.GetState(gameObjectId) | string or nil | Reads the selected state. |
function Open(gameObjectId)
TransformAnimator.SetSpeed(gameObjectId, 1.0)
if not TransformAnimator.Play(gameObjectId, "Open") then
Log.Print("Open state is unavailable")
end
end
A scene supports at most 32 Transform Animator components and four states per component. Validation blocks over-budget state data before packaging.