struct
AnimationProxy
Represents a copy of the Animation data for use specifically on the animation thread.
Public
Constructors
AnimationProxy
Methods
~AnimationProxy
RebuildFull
Rebuilds the internal proxy data according to the newly assigned skeleton and clips.
This should be called whenever the animation skeleton changes.
- skeleton
- New skeleton to assign to the proxy.
- mask
- Mask that filters which skeleton bones are enabled or disabled.
- inOutClipInfos
- Potentially new clip infos that will be used for rebuilding the proxy. Once the method completes clip info layout and state indices will be populated for further use in the Update*() methods.
- sceneObjects
- A list of scene objects that are influenced by specific animation curves.
- morphShapes
- Morph shapes used for per-vertex animation.
RebuildClips
Rebuilds the internal proxy data according to the newly clips.
This should be called whenever clips are added or removed, or clip layout indices change.
- inOutClipInfos
- New clip infos that will be used for rebuilding the proxy. Once the method completes clip info layout and state indices will be populated for further use in the Update*() methods.
- sceneObjects
- A list of scene objects that are influenced by specific animation curves.
- morphShapes
- Morph shapes used for per-vertex animation.
UpdateClipInfos
Updates the proxy data with new information about the clips.
Caller must guarantee that clip layout didn't change since the last call to Rebuild*().
UpdateMorphChannelWeights
Updates the proxy data with new weights used for morph shapes.
Caller must ensure the weights are ordered so they match with the morph shapes provided to the last Rebuild*() call.
UpdateTransforms
Updates the proxy data with new scene object transforms.
Caller must guarantee that clip layout didn't change since the last call to Rebuild*().
UpdateTime
Updates the proxy data with new clip times.
Caller must guarantee that clip layout didn't change since the last call to Rebuild*().
Clear
Destroys all dynamically allocated objects.