So I have one parameter named “Item”. I am trying in my script to use the func Animator.StringToHash to store the parameter , like this:
![]()
In the Start I call :
playerAnimator.SetFloat(ITEM_INDEX, 1.0f);
and it throws the warning : Parameter type ‘Hash -1087796704’ does not match.
Then I try to put directly the name of parameter in the Start:
playerAnimator.SetFloat("Item", 1.0f);
and it throws the warning : Parameter type ‘Item’ does not match.
If i create a second bool parameter this does not happening , it sets the bool parameter correctly.
I tried to create a second animator asset and still the same
How is this possible???
