Click or drag to resize

AnimatorExtensionsHasParameter Method (Animator, String)

Checks whether an Animator instance has the specified parameter by name

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

Parameters

animator
Type: UnityEngine.Animator
The Animator instance being checked
paramName
Type: SystemString
The string name of 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