Interface IShadowBoneManagerHandle
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
boneTransformThe source transform to shadow.
Returns
- Transform
The corresponding shadow transform, or
nullwhenboneisnull.
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
originalRendererRendererThe source renderer whose proxy references should be replaced.
originalTransformThe exact source transform reference to replace.
replacementTransformThe transform to use in place of
original.