BoneAccessorclass
Pseudo-property on a `Sandbox.SkinnedModelRenderer` that has a sub-property for each bone. Stores movie-driven transforms for each bone during playback, and applies them when `Sandbox.MovieMaker.Properties.MovieBoneAnimatorSystem` performs `Sandbox.GameObjectSystem.Stage.UpdateBones`.
Constructors1
Showing 1 constructors
public BoneAccessor(Sandbox.SkinnedModelRenderer renderer)
| Parameter | Type | Description |
|---|---|---|
| renderer | SkinnedModelRenderer | — |
No results match this filter.
Methods5
Showing 5 methods
public void ApplyOverrides()
Applies any movie-driven bone transforms. Called during `Sandbox.GameObjectSystem.Stage.UpdateBones`.
void—public void ClearOverrides()
Clears any movie-driven bone transforms for this renderer.
void—public Transform GetParentSpace(int 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.
| Parameter | Type | Description |
|---|---|---|
| index | int | — |
public bool HasBone(string name)
Helper to see if the renderer's model has a bone with the given `name`.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
bool—No results match this filter.
Properties1
Showing 1 properties
public Sandbox.SkinnedModelRenderer Sandbox.MovieMaker.Properties.BoneAccessor.Renderer { get; set; }
Renderer this accessor was created for.
No results match this filter.