Skip to content

Commit 6a6a0e7

Browse files
Never show disabled parent help box in play mode
1 parent d470f8d commit 6a6a0e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Editor/Inspector/DisabledParentObjectHelpBox.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ public DisabledParentObjectHelpBox(UnityEditor.Editor editor)
4747

4848
private void UpdateHelpBoxVisibility()
4949
{
50-
_box.style.display = _editor.targets.ToList().Any(IsParentObjectDisabled)
51-
? DisplayStyle.Flex
52-
: DisplayStyle.None;
50+
var showBoxes = !EditorApplication.isPlaying && _editor.targets.ToList().Any(IsParentObjectDisabled);
51+
_box.style.display = showBoxes ? DisplayStyle.Flex : DisplayStyle.None;
5352
}
5453

5554
private static bool IsParentObjectDisabled(UnityEngine.Object target) =>

0 commit comments

Comments
 (0)