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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
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