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

0

Found in

5.1.1p4

Issue ID

727679

Regression

No

[MonoBehaviour] Enable checkbox is not shown when there are methods affected by it

Inspector Functionality

-

To reproduce:
1. Open attached repro.unitypackage
2. Open scene 'square'. The scene has a UI sprite which has a monobehaviour on it. The monobehaviour implements the IPointerEnterHandler. The OnPointerEnter method get's called when the mouse is hovered over the image.
3. Notice that the monobehaviour in the inspector does not have a checkbox
4. Add a Start() or Update() method to the TestScript
5. Disable the monobehaviour on the image
6. Notice how the OnPointerEnter even is no longer getting called - it is affected by the enable/disable!

Workaround: add an empty Start() or Update() method to the monobehaviour to render the checkbox.

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.