Skip to main content

ControlledAnimation

A class in Root.Township, the global namespace.

Sets one float parameter on an Animator, for driving an animation from an event.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private Animator animatorAnimator to drive.
private string propertyFloat parameter name.
private int propertyHashHash of property.

Methods​

MemberWhat it is
void Set(float progress)Sets the parameter to the given value.
1 private and internal method
MemberWhat it is
private void Awake()Hashes the parameter name.