unity check if animator parameter exists code example
Example: unity check if animator has parameter
if (Animator.parameterCount > 0)
{
Debug.Log("Animator has parameters");
}
else
{
Debug.Log("Animator has no parameters");
}
if (Animator.parameterCount > 0)
{
Debug.Log("Animator has parameters");
}
else
{
Debug.Log("Animator has no parameters");
}