JetBrains / JetBrains/resharper-unity

Unity event functions should be private by default

Open
#1,493 1 comment 0 reactions 0 assignees View on GitHub
up for grabs
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Event functions (Awake etc.) should be not public by default as they are invoked by Unity and there is very little reason to invoke them yourselves.

An inspection and quick fix should be created to let the user know and easily fix this.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating existing Unity inspections and quick fixes, then identify how Unity event functions such as Awake are recognized. Done means an inspection flags public event functions and a quick fix makes them private.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
devtools, game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.