ControllerState.

ControllerState.ParameterID Struct

Summary

A wrapper for the name and hash of an UnityEngine.AnimatorControllerParameter.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
  • ValueType
graph BT Type-->Base0["ValueType"] Type["ControllerState.ParameterID"] class Type type-node

Syntax

public readonly struct ControllerState.ParameterID : ValueType

Constructors

Name Summary
ParameterID(int) Creates a new Animancer.ControllerState.ParameterID with the specified Animancer.ControllerState.ParameterID.Hash and leaves the Animancer.ControllerState.ParameterID.Name null.
ParameterID(string) Creates a new Animancer.ControllerState.ParameterID with the specified Animancer.ControllerState.ParameterID.Name and uses UnityEngine.Animator.StringToHash(System.String) to calculate the Animancer.ControllerState.ParameterID.Hash.
ParameterID(string, int) Creates a new Animancer.ControllerState.ParameterID with the specified Animancer.ControllerState.ParameterID.Name and Animancer.ControllerState.ParameterID.Hash.

Fields

Name Constant Value Summary
Hash
The name hash of this parameter.
Name
The name of this parameter.

Methods

Name Value Summary
ToString() string
Returns a string containing the Animancer.ControllerState.ParameterID.Name and Animancer.ControllerState.ParameterID.Hash.
ValidateHasParameter(RuntimeAnimatorController, AnimatorControllerParameterType) void
[Editor-Conditional] Throws if the `controller` doesn't have a parameter with the specified Animancer.ControllerState.ParameterID.Hash and `type`.

Operators

Name Value Summary
implicit operator ControllerState.ParameterID(int) ControllerState.ParameterID
implicit operator ControllerState.ParameterID(string) ControllerState.ParameterID
implicit operator int(ControllerState.ParameterID) int