JetBrains / JetBrains/resharper-unity
Event method usage missing from SignalReceiver
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
When using a `SignalReceiver` component (from timeline) and reference your method in the UnityEvent in the inspector, it doesn't count for the method's usages.
Created a very basic repro project: [rider-repro.zip](https://github.com/JetBrains/resharper-unity/files/4608903/rider-repro.zip) (unity 2019.3.13)
As you can see in rider `NewBehaviourScript.MySignalReceiver()` doesn't have any usages while it is referenced in `SampleScene > Timeline (GameObject) > SignalReceiver`
Contributor guide
Research direction
Start with the linked rider-repro.zip using Unity 2019.3.13 and inspect the SampleScene > Timeline (GameObject) > SignalReceiver reference to NewBehaviourScript.MySignalReceiver(). Trace how the Unity plugin detects method usages, then verify that Rider reports the referenced method as used without breaking other usage analysis.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- devtools, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100