Editar

Compartir a través de


AnimatorParameter Constructor

Definition

Constructor.

public AnimatorParameter (string name, UnityEngine.AnimatorControllerParameterType parameterType, int defaultInt = 0, float defaultFloat = 0, bool defaultBool = false);
new Microsoft.MixedReality.Toolkit.Utilities.AnimatorParameter : string * UnityEngine.AnimatorControllerParameterType * int * single * bool -> Microsoft.MixedReality.Toolkit.Utilities.AnimatorParameter
Public Sub New (name As String, parameterType As AnimatorControllerParameterType, Optional defaultInt As Integer = 0, Optional defaultFloat As Single = 0, Optional defaultBool As Boolean = false)

Parameters

name
String

Name of the animation parameter to modify.

parameterType
UnityEngine.AnimatorControllerParameterType

Type of the animation parameter to modify.

defaultInt
Int32

If the animation parameter type is an int, value to set. Ignored otherwise.

defaultFloat
Single

If the animation parameter type is a float, value to set. Ignored otherwise.

defaultBool
Boolean

"If the animation parameter type is a bool, value to set. Ignored otherwise.

Applies to