Search Issue Tracker

Won't Fix

Votes

0

Found in

2019.2.0b10

Issue ID

1174644

Regression

No

[Scripting] Custom Editor's toggle in hierarchy window does not work if it overlaps with SceneVis/Foldout/GameObject Lock

Scripting

-

Using EditorApplication.hierarchyWindowItemOnGUI to show a toggle on the left of a GameObject in Hierarchy, it does not accept click if it overlaps with SceneVis/Foldout/GameObject Lock.

Steps to reproduce:
1. Open attached project
2. Click on check-box in the Hierarchy window next to any GameObject

Note:
Modify the value of r.x in the CustomEditorHierarchy script to move the toggle to overlap onto one of the three: SceneVis, Foldout or GameObject Lock.

Actual result:
The toggle ignores the mouse click and its state does not change

Expected result:
The toggle accepts the mouse click and its state changes accordingly

Reproduced in:
2019.3.0a12, 2019.3.0a11, 2019.2.0b10, 2019.1.0a10 (SceneVis introduced), 2018.4.4f1 (Foldout)

Environment:
Windows & Mac

Note:
See attached video

  1. Resolution Note (2019.3.X):

    This is a restriction of the hierarchy view. In a future iteration of the hierarchy we will take this into account.

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.