JetBrains / JetBrains/resharper-unity

Inspection for multiple component classes in a single file

Open
#113 8 comments 0 reactions 1 assignee Claimed by @citizenmatt View on GitHub
enhancement
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Unity will attach a component to a game object by `.meta` file GUID, rather than classname. The C# file represented by the `.meta` file must contain only one `MonoBehaviour` class. Add an inspection to all class declarations if there is more than one.

See #2 ([comment](https://github.com/JetBrains/resharper-unity/issues/2#issuecomment-280414653)).

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.