JetBrains / JetBrains/resharper-unity

Warn when ambigious class is used

Open
#600 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

In the solution NewBehaviourScript exists in both Assets and Assets/Editor
so the code

`var cube = GameObject.Find("Cube").GetComponent();`
`Assert.IsNotNull(cube, "test");`

should be confused, which one to use.

[New Unity Project (7).zip](https://github.com/JetBrains/resharper-unity/files/2115103/New.Unity.Project.7.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.