JetBrains / JetBrains/resharper-unity
Suggest using SetPositionAndRotation
Open
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
If setting both `_transform.position` and `_transform.rotation` in the same code section, suggest using [`_transform.SetPositionAndRotation`](https://docs.unity3d.com/ScriptReference/Transform.SetPositionAndRotation.html)
Contributor guide
Research direction
Start by reading the Unity Transform.SetPositionAndRotation documentation and locating the inspection that handles assignments to _transform.position and _transform.rotation. Confirm the suggestion applies when both assignments occur in the same code section, and verify that the inspection reports this pattern without affecting unrelated assignments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100