Search Issue Tracker
By Design
Votes
2
Found in
4.5.2f1
Issue ID
623951
Regression
No
[SelectionBase] attribute on parent GameObject does nothing when prefab child exists
To reproduce:
1) Make two gameObjects and give them a child which you can click in sceneview easily, for example, Sphere
2) Make one of those Spheres a prefab
3) Create a script and add SelectionBase attribute
4) Attach script to each parent
5) Select each object from scene view. When object with no prefab is selected, the parent highlights in hierarchy. When object with child prefab is selected, the child is highlighted in hierarchy
Comments (13)
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Xarbrough
Mar 10, 2018 01:25
Yea, why is this by design? Prefab roots are generally prioritized, that's fine, but the SelectionBase should let me specify exactly which object is selected when searching up the hierarchy. I'd even say this is the most common use-case, because the things we select in the scene view are typically meshes, which are close to the deepest level of the hierarchy, but often we want other components to be selected at a higher grouping level, hence the SelectionBase attribute should also select parent GameObjects of prefabs.
Stardog
Nov 04, 2016 19:41
This needs fixed. It's shouldn't be "by design".
yuewahchan
Jun 05, 2015 10:36
It is broken in 4.6.5f1