Table of Contents

Interface IShadowBoneManagerHandle

Namespace
nadena.dev.ndmf.preview

Allows the current preview stage to replace a bone transform with one that can be manipulated or overridden as part of preview processing.

public interface IShadowBoneManagerHandle

Methods

GetBone(Transform)

Returns a shadow transform whose pose is synchronized with bone at preview frame start. Requesting a non-null transform also replaces exact matching references in renderer proxies with that shadow, including skinned bones and root bones, probe anchors, and proxy parents.

Transform GetBone(Transform bone)

Parameters

bone Transform

The source transform to shadow.

Returns

Transform

The corresponding shadow transform, or null when bone is null.

ReplaceBone(Renderer, Transform, Transform)

Records an exact replacement of original with replacement for originalRenderer. The replacement affects matching entries in a skinned renderer's bones and root bone, a renderer's probe anchor, and reparents a proxy for a renderer on the original to the replacement bone. It does not replace descendant references or cascade through prior replacements. This method may only be called from IRenderFilter.Instantiate or IRenderFilterNode.Refresh.

void ReplaceBone(Renderer originalRenderer, Transform original, Transform replacement)

Parameters

originalRenderer Renderer

The source renderer whose proxy references should be replaced.

original Transform

The exact source transform reference to replace.

replacement Transform

The transform to use in place of original.