Click or drag to resize

AnimatorExtensionsHasParameter Method (Animator, Int32)

Checks whether an Animator instance has the specified parameter by hash value

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static bool HasParameter(
	this UnityEngine.Animator animator,
	int paramName
)

Parameters

animator
Type: UnityEngine.Animator
The Animator instance being checked
paramName
Type: SystemInt32
The int value (hash representation) of the parameter to check for

Return Value

Type: Boolean
True if the parameter was present, otherwise false

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnityEngine.Animator. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also