Skip to main content

RotateOverTime

A class in Root.Township, Alta.Utilities.

Script animation that spins a transform at a fixed rate in degrees per second on each axis. Skipped by static flattening and mesh splitting.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private Vector3 rotationAmountDegrees per second to rotate around each local axis.

Methods​

MemberWhat it is
protected override void UpdateAnimation()Adds rotationAmount times delta time to the transform's local Euler rotation.