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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
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.