JetBrains / JetBrains/resharper-unity
Suggest using hash overload for Animator.Play
Open
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
We already suggest converting a string name to a hash for various methods, such as `Animator.SetInteger`. We should do the same for `Animator.Play`. Bonus points is the extracted `Animator.StringToHash` can still suggest animation state names.
Contributor guide
Research direction
Start by finding the existing suggestion for converting string names to hashes in methods such as Animator.SetInteger, then trace how it handles Animator.Play. Add equivalent coverage for Animator.Play while preserving suggestions for animation state names extracted through Animator.StringToHash; verify the relevant analyzer tests if present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100