Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
3
Found in
4.3.0b2
Issue ID
564117
Regression
No
C# compiler reports warnings
Steps to reproduce :
- import the project attached and notice the warnings :
Assets/Scripts/Background/PlaySetStatesBase.cs(21,31): warning CS0067: The event `PlaySetStatesBase<T>._onFearChange' is never used
Assets/Scripts/Background/PlaySetStatesBase.cs(22,33): warning CS0067: The event `PlaySetStatesBase<T>._onTerrorChange' is never used
Assets/Scripts/Background/PlaySetStatesBase.cs(23,35): warning CS0067: The event `PlaySetStatesBase<T>._suddenScareEvent' is never used
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Freeze on DynamicHeapAllocator::InitializeMemoryRegion when entering Play mode in a specific scene
- Memory usage rises when switching scenes with GRD enabled and a loaded texture in URP
- [Quality Hackweek] Terrain Brush Size value is not serialized after deselecting the terrain when using the first instance of multiple Inspectors
- "NullReferenceException" is thrown when setting a long string in TMP with "Atlas Population Mode" set to "Dynamic" and "Multi Atlas Textures" enabled
- TextMeshPro text is misaligned when alignment is set via script
Bunny83
May 04, 2015 03:33
I can confirm in Unity 5.0.0f4 this problem still occurs. It only happens by System.Action events without parameters. As soon as you use System.Action<int> the warning goes away.
I've created a generic adapter class that implements IList<T> and for every method in the interface i made a callback event. None is throwing a warning, except the OnClear event since it's the only one that doesn't have parameters or a return type. The other 12 are fine.