Component:Animator

From Resonite Wiki
Revision as of 19:24, 19 March 2024 by 989onan (talk | contribs) (add info)
Component image 
Animator component as seen in the Scene Inspector

Animator is a component that's used to play Animation and drive a list of fields using the contained animation data. The order and type of said fields is determined by the Animation in the Clip field, and the value sampled from the Animation for any field (Fields) is determined by the Animation's sampled value at the position the _playback is currently at. Sampling is determined by the type of Animation Clip is.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
_playback direct SyncPlayback Is populated by the length and properties of Clip and is used to determine what point at which to sample the Clip.
Clip Animation An Animation used to determine the list of Fields on this component and their value/ref types.
Fields list of DriveRef`1<IField> the list of values stored in this animation. Each field and it's type/animation data is determined by track index order.

Behavior

Examples

This is generated by the GLTF and FBX importers when a file with animation data is imported. Any extra animations that don't fit into the animator (EX: NLA tracks from Blender3D) when the animation is imported is put as a component attached to the AssetSlot for the file that is generated by the importer while importing.

See Also