JetBrains / JetBrains/resharper-unity
Inspection for multiple component classes in a single file
Open
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
Assessment
This issue has not been assessed yet.