Skip to main content

MoveToBone

A class in Root.Township, the global namespace.

Reparents its GameObject onto a bone of a character dummy on Awake.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private BoneIdentifier boneBone to attach to.
private CharacterDummyPointer dummyPointer to the character dummy that owns the bone.

Methods​

MemberWhat it is
void Move()Parents this object to the chosen bone and resets its local transform.
1 private and internal method
MemberWhat it is
private void Awake()Calls Move.