Search Issue Tracker

Active

Votes

0

Found in

2021.3.44f1

2022.3.47f1

6000.0.21f1

Issue ID

UUM-82659

Regression

No

Private method is still visible in the Inspector Window's button onClick events when setting it from public to private

--

-

Steps to reproduce:
1. Open the attached “IN-84685.zip” project
2. Open the “SampleScene”
3. In the Hierarchy select “Canvas->Button”
4. Observe the “Button” GameObjects onClick event in the Inspector
5. Open the “Example.cs” script
6. Change the “Method” from public to private
7. Observe the “Button” GameObjects on click event in the Inspector again

Expected result: The “method” isn’t visible and does not work
Actual result: The “method” is visible, but not selectable and does work as designed

Reproducible in: 2021.3.44f1, 2022.3.47f1, 6000.0.21f1

Reproducible with: Windows 11
Not reproducible with: No other environment tested

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.