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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
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.