ChildGameObjectsOnly In Editor Window Does Not Select in Prefabs
Issue #628
new
Issue:
When using ChildGameObjectsOnly in a prefab, it doesn’t list children in the prefab, only children in the root scene. It does correctly display an error though when a non-child object is selected from outside the prefab.
To Reproduce:
- Create two classes, Selector:MonoBehavior, Selectee:MonoBehavior
- As a property of Selector- [ChildGameObjectsOnly] public Selectee Selected;
- Create a Prefab
- At the top level of the prefab add the Selector component
- Nest some child objects in the prefab, and add Selectee to one
- Outside the prefab, on the root level create a few empty GameObjects, some nested
- Add Selectee to a nested gameobject
- In the prefab editor, on the Selector component, click the dot to browse for children
- Note that the Selectee in the root is visible, but the Selectee in the Prefab isn’t
Unity Version: 2019.3.0f3
Odin Version: 2.1.9
Editor Only: No
OS: Win 10 Pro