Skip to main content

CopyTransform

A class in Root.Township, the global namespace.

Each frame, makes this object a sibling of the target and copies its local position, rotation and scale.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private Transform targetTransform copied.

Methods​

1 private and internal method
MemberWhat it is
private void LateUpdate()Reparents to the target's parent and copies its local transform.