Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.2.1f1
Issue ID
1067796
Regression
No
Methods remain assigned to Buttons and can still be called after being changed from 'Public' to 'Private'
How to reproduce:
1. Open the SampleScene in the user-submitted project (Test_Private_Public)
2. Open 'Test_Script.cs' and make the Test_Public_Private method public
3. Select 'Button' under 'Canvas' in the Hierarchy window and set its On Click() to be the Test_Script > Test_Public_Private method
4. Back in the script make the Test_Public_Private method private
Expected result: the button On Click() is no longer set to call the Test_Public_Private method
Actual result: the button On Click() is still set to call the Test_Public_Private method
Reproducible with: 2017.1.5f1, 2017.2.3p2, 2017.4.9f1, 2018.1.9f1, 2018.2.3f1, 2018.3.0a8
Notes:
Button linked with a private method can still call the said method in Play Mode
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
- The Context Menu items are ordered incorrectly
- Audio Mixer does not change volume when lowering volume on an Audio Mixer loaded from AssetBundles
- Error “Value cannot be null. Parameter name: key UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)” thrown and Addressables build fails when "Include in Build" is disabled and using Addressables For Android package
- “error CS0433: The type 'CodeBinaryOperatorType' exists in both 'System.CodeDom and 'System" compilation errors are thrown when opening a specific project
- Metal Vertex Shader warning is being thrown when creating a VR Template Project
Resolution Note (2019.1.X):
low priority and minor or cosmetic issues. likely won't fix.