Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.3.10f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1141493
Regression
No
UnityEvent can still call method which was changed from public to private
The scene has two UnityEvents. One is custom and set up on a Cube and other is UI's button On Click event.
Steps to reproduce:
1. Download 1141493_repro.zip and open "SampleScene" scene
2. Enter play mode
3. Click on UI button or Cube
4. Notice that the Click method is called
5. Open test.cs
6. Make Click method private
7. Enter play mode and click on Cube or UI button
Expected results: Private method is not called
Actual results: Private method is called
Reproduced with: 2019.3.0a1, 2019.2.0a12, 2019.1.0f2, 2018.3.12f, 2017.4.26f1
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
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
Resolution Note:
low proirity defect and unlikely going to be fixed.