Documentation

Unity Engine

Download Unity

Unity Engine

UnityEngine.AnimationCoreModule

The AnimationCore module implements the low-level Unity.Animations API, which samples animation clips and rigs from C# jobs.
Read time 4 minutesLast updated 3 hours ago

Definition

  • Type: Module

Classes

Class

Description

AnimationClipExtensionsExtension methods for animation clips that give access to the clip data used for sampling.
AnimationEventUtilityFunctions to read the animation events baked into a clip.
AnimationStreamBlendingExtensionsExtension methods that blend, add, weight, invert, and subtract animation streams.
AvatarExtensionsExtension methods for avatars that give access to the rig definition of an avatar.
AvatarMaskExtensionsExtension methods for avatar masks that give access to the weight mask of an avatar mask.
BindingUtilityUtility functions to find the index of a binding or a socket from its identifier.
BlendSpaceUtilityProvides methods that compute the weights of the animations in one-dimensional and two-dimensional blend spaces.
BlobAssetReferenceExtensionsExtension methods for a BlobAssetReference.
BlobObjectExtensionsExtension methods for a BlobObject that you reference with a UnityObjectRef.
CoreCore runtime functions.
InterpolatorEasing functions that remap a value between 0 and 1 along a curve.
Quaternion4ExtensionsExtension methods for the quaternion4 type. Every operation is applied per lane.
RigDefinitionUtilityUtility methods for rig definitions.
RigRemapTableExtensionsExtension methods that create a new remap table from an existing one.
RootMotionUtilityUtility functions for the root motion of a rig, such as projecting a root translation onto the ground.
TimerStateExtensionsExtension methods for TimerState to control playback.
WeightMaskExtensionsExtension methods to create a WeightMaskSampler from a weight mask.

Structs

Struct

Description

AnimatedDataBuffer containing the animated data for a rig. All transform, float, integer, and quaternion data is packed in this buffer. To read or write to it, use AnimationStream.
AnimationStreamA proxy for reading and writing the animated channel values of a rig, such as translations, rotations, floats, integers, and entity IDs.
AnimationStreamMaskAn AnimationStreamMask is a data proxy to a Rig's WeightData. It can be used to read and write individual weight mask rig channels.
BindingSetBinding layout of a rig, used to find a binding by its identifier and to size the buffers of an animation stream.
ChannelMaskInformation about which channels of an animation stream have been animated, read through AnimationStream.FrameMask or AnimationStream.PassMask.
ClipThe baked data of an animation clip, such as its start time, length, and whether it loops.
ClipSamplerSamples an animation clip into an AnimationStream, and returns the root motion of the clip.
DiscreteTimeIntervalStructure representing a time interval.
EntityIdChannelAn animation channel that holds an EntityId, such as a sprite or a material reference.
FloatChannelFloat channel.
FreeformBlendSpace2DDataThe precomputed data that the freeform 2D blend space function of BlendSpaceUtility needs.
GatheredAnimationEventAn animation event that a clip timer crossed, with the function name, the parameters, and the time of the event.
IntChannelA channel that animates an integer value, such as a discrete property of a component.
LocalRotationChannelRotation channel.
LocalScaleChannelScale channel.
LocalTranslationChannelTranslation channel.
MotionOutputThe root motion of a clip from the previous time of a timer to its current time, and the root transform of the clip at the current time.
quaternion4Four quaternions stored as a structure of arrays, to process four rotations at the same time.
RigBuilderAn intermediate data representing the rig.
RigDefinitionThe blob representation of a Rig Definition. It contains the skeleton topology, a set of animation channels with unique identifiers and a buffer of default values for each animation channel.
RigRemapTableMaps the channels of a source rig to the channels of a destination rig.
SkeletonThe skeleton topology.
SkeletonNodeThe representation of a transform in the animation rig.
SocketNodeThe representation of a socket in the animation rig.
StringHashA 32-bit hash of a string that identifies bones, channels, and clip bindings in a rig.
TimerStateData used to represent the current state of an animation timer.
WeightDataBuffer containing the weighted values of a weight mask. To read or write to it, use AnimationStreamMask.
WeightMaskWeight Mask data, this representation can be compatible with multiple different rig definitions holding identical bindings.
WeightMaskBuilderHelper to create a WeightMask.
WeightMaskSamplerHolds the weight of each channel of a rig for a weight mask, such as the weight mask of an avatar mask.

Enums

Enum

Description

FreeformBlendSpace2DModeThe freeform blend space algorithms that FreeformBlendSpace2DData supports.
RigRemapSpaceTransform space in which position and rotation are read from.
TimeControlStateOptions for the play state of a timer: stopped, paused, or playing.