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
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ":focus" style will not be shown when the UI element is unparented and reparented and the "Focus()" method is called without the "Blur()" method being called
- Crash on BucketAllocator::Allocate when importing TextMeshPro assets
- Playmode dropdown creates continuous "Layout update is struggling" errors at certain aspect ratios
- Editor takes a long time to open VFX Graph 'Subgraph' asset when it is heavily referenced by multiple other VFX Graphs
- "Editor Event Handler Error" error is thrown when using Terrain Tool shortcuts
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.
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.
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.
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.
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.