Skip to main content

WrapBone

A class in Root.Township, the global namespace.

Inserts this object into a character dummy's rig as the new parent of one bone, so the bone moves with it.

Constructors​

MemberWhat it is
WrapBone()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private BoneIdentifier boneWhich bone to wrap.
private CharacterDummyPointer dummyPoints at the character dummy whose rig holds the bone.

Methods​

MemberWhat it is
void Move()Takes the bone's place in the hierarchy (same parent and local transform), then puts the bone under this object with a reset local transform.
1 private and internal method
MemberWhat it is
private void Awake()Calls Move.