AnimationParameterType class final
What kind of value an animation graph parameter holds — N1.
A class with four constants rather than an enum, so that a fifth kind
— a vector for a 2D blend space is the likely one — is an addition rather
than a break in every switch somebody wrote against the four.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The kind's lower-case name as messages print it, such as
float.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- writer → String
-
The AnimationParameters call that writes this kind, named in a
refusal so the caller is told what to call instead.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
byName(
String name) → AnimationParameterType? -
The value called
name, or null for a name this version does not know, which is what a file written by a later version can carry.
Constants
- boolean → const AnimationParameterType
- On or off, and stays where it is put: grounded, crouching, armed.
- float → const AnimationParameterType
- A real number: a speed, a lean, an aim angle.
- integer → const AnimationParameterType
- A whole number: a weapon slot, a combo stage.
- trigger → const AnimationParameterType
- On until a transition uses it, then off: attack, jump, hit.
-
values
→ const List<
AnimationParameterType> - Every value this version names, in declaration order. A later version appends; nothing is removed or renamed within a major.