Replies: 1 comment
-
|
Sure |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment the
AnimatorParamDropdownis only allowed on a string, which works really well.But best practice in Unity is to use integers for animator parameters (retrieved through
Animator.StringToHash(string)) because if you use a string, it will perform the hash function every time you do anything with that parameter.The current best way would be to serialize as a string and then manually call
Animator.StringToHash(string), cache the result and use that everywhere you use the parameter.It would be ideal if
AnimatorParamDropdowncould handle that step as well, so we don't have to do it manually.Beta Was this translation helpful? Give feedback.
All reactions