Skip to main content

RotateTransform

A class in Root.Township, the global namespace.

Sets its transform to one of a list of preset rotations. Meant to be called from events.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private Vector3[] eulerAnglesThe preset rotations, as Euler angles.

Methods​

MemberWhat it is
void SetGlobalRotation(int angleIndex)Sets the world rotation to the Euler angles at the given index.
void SetLocalRotation(int angleIndex)Sets the local rotation to the Euler angles at the given index.