Search Issue Tracker

By Design

Won't Fix in 2023.1.X

Votes

0

Found in

2023.1.0a1

Issue ID

UUM-3544

Regression

No

UnityEditor.Editor OnGetFrameBounds() callback is not called when ancestor is framed

Scene Tooling

-

Reproduction steps:
1. Open the attached project "FrameTest"
2. Open Scenes/SampleScene
3. Select "Ancestor" GameObject in the Hierarchy and press F to frame the GameObject

Expected result: "OnGetFrameBounds" is logged to the Console.
Actual result: "OnGetFrameBounds" is not logged to the Console.

Reproducible with: 2019.4.32f1, 2020.3.22f1, 2021.1.26f1, 2021.2.1f1, 2022.1.0a15

Notes:
- When framing the "Child" GameObject, the "OnGetFrameBounds" message is logged to the Console.
- OnGetFrameBounds() is called from the Editor/MyMonoBehaviourEditor.cs Script

  1. Resolution Note:

    Current behaviour is by design - Editor.OnGetFrameBounds should only be called if the currently selected target matches the target type of the custom editor. If the user wants to consider the bounds of a target's children, they may do so within the Editor.OnGetFrameBounds for that target - see doc: https://docs.unity3d.com/ScriptReference/Editor.OnGetFrameBounds.html.

  2. Resolution Note (2023.1.X):

    Current behaviour is by design - Editor.OnGetFrameBounds should only be called if the currently selected target matches the target type of the custom editor. If the user wants to consider the bounds of a target's children, they may do so within the Editor.OnGetFrameBounds for that target - see doc: https://docs.unity3d.com/ScriptReference/Editor.OnGetFrameBounds.html.

  3. Resolution Note:

    Current behaviour is by design - Editor.OnGetFrameBounds should only be called if the currently selected target matches the target type of the custom editor. If the user wants to consider the bounds of a target's children, they may do so within the Editor.OnGetFrameBounds for that target - see doc: https://docs.unity3d.com/ScriptReference/Editor.OnGetFrameBounds.html.

  4. Resolution Note:

    Current behaviour is by design - Editor.OnGetFrameBounds should only be called if the currently selected target matches the target type of the custom editor. If the user wants to consider the bounds of a target's children, they may do so within the Editor.OnGetFrameBounds for that target - see doc: https://docs.unity3d.com/ScriptReference/Editor.OnGetFrameBounds.html.

  5. Resolution Note:

    Current behaviour is by design - Editor.OnGetFrameBounds should only be called if the currently selected target matches the target type of the custom editor. If the user wants to consider the bounds of a target's children, they may do so within the Editor.OnGetFrameBounds for that target - see doc: https://docs.unity3d.com/ScriptReference/Editor.OnGetFrameBounds.html.

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.