I’m almost finished with my project, and one thing that im trying to fix are the warnings.l I have an animator script which turns off all booleans in the animator, but it keeps saying that floats are not booleans. I just need a way to exclude these floats from the list of variables i need to turn off. Thanks in advance!
Here:
private void AllBooleansFalse()
{
foreach (AnimatorControllerParameter parameter in yourAnimatorVariableHere.parameters)
{
if (parameter.type == AnimatorControllerParameterType.Bool)
{
yourAnimatorVariableHere.SetBool(parameter.name, false);
}
}
}