JetBrains / JetBrains/resharper-unity

Suggest using SetPositionAndRotation

Open
#1,466 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.