NodeWorld

Animator

La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.

csharp
public sealed class Animator : Behaviour

Namespace NodeWorld.Flux.

An Animator of the world: its parameters, its states and its speed. The server has none.

Properties

speed

csharp
public float speed { get; set; }

Playback speed (1: normal).

Methods

SetBool

csharp
public void SetBool(string name, bool value)

Sets a bool parameter.

SetFloat

csharp
public void SetFloat(string name, float value)

Sets a float parameter.

SetInteger

csharp
public void SetInteger(string name, int value)

Sets an int parameter.

SetTrigger

csharp
public void SetTrigger(string name)

Sets a trigger parameter.

ResetTrigger

csharp
public void ResetTrigger(string name)

Clears a trigger parameter.

GetBool

csharp
public bool GetBool(string name)

A bool parameter.

GetInteger

csharp
public int GetInteger(string name)

An int parameter.

GetFloat

csharp
public float GetFloat(string name)

A float parameter.

Play

csharp
public void Play(string stateName, int layer = -1, float normalizedTime = float.NaN)

Plays the state now (layer -1: the first layer with that state; normalizedTime NaN: from where it is).

Rebind

csharp
public void Rebind()

Binds the animated properties again, as Unity's Animator.Rebind.

Update

csharp
public void Update(float deltaTime)

Evaluates the animator deltaTime seconds forward, now.