Search Issue Tracker
Won't Fix
Votes
0
Found in
5.4.2f1
Issue ID
859136
Regression
No
Function will stay assigned to the event, even if function's AccessModifier is changed from public to private
To reproduce:
1. Open attached project "PublicPrivateBug.zip".
2. Play "main" scene.
3. In "Game view" click on a "Button", or "Text", or drag "Scrollbar". You will bet a Debug.Log message in console.
4. Inspect any one of those UI elements. You can't reselect the same function which is used, because it is currently set to "private" in "Test.cs"
Actual result: You can use private functions, with Events (mouse clicks, value changes...), but you can't reselect this function.
Expected result: If function is changed from "public" to "private" it should no longer be accessible by the Event. (should change to "No Function", or at least give some error message).
Reproduced with: 5.2.4f1, 5.3.6p7, 5.4.2f1, 5.5.0f3, 5.6.0a6
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 when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Add comment