Api Sandbox MovieMaker Properties BoneAccessor
class

BoneAccessor

public sealed class BoneAccessor

Pseudo-property on a SkinnedModelRenderer that has a sub-property for each bone. Stores movie-driven transforms for each bone during playback, and applies them when MovieBoneAnimatorSystem performs UpdateBones.

Constructors

BoneAccessor(SkinnedModelRenderer renderer)

Properties

Name Type Description
Renderer SkinnedModelRenderer Renderer this accessor was created for.

Methods

Boolean HasBone(String name)

Helper to see if the renderer's model has a bone with the given .

Transform GetParentSpace(Int32 index)

Gets the current movie-driven parent-space transform of the given bone. If the bone isn't controlled by a movie, just returns the current parent-space transform.

Void SetParentSpace(Int32 index, Transform value)

Sets the current movie-driven parent-space transform of the given bone.

Void ClearOverrides()

Clears any movie-driven bone transforms for this renderer.

Void ApplyOverrides()

Applies any movie-driven bone transforms. Called during UpdateBones.

Assembly: Sandbox.Engine Namespace: Sandbox.MovieMaker.Properties Full Name: Sandbox.MovieMaker.Properties.BoneAccessor