Search Issue Tracker
Fixed in 2022.1.X
[Scene Hierarchy] ArgumentException is thrown on applying recursive parenting for objects
On Creating Empty Parent from 'Default Parent' Object causes ArgumentException is thrown in console. Refer attached video and stack trace.
Steps to Repro:
1. Create a new Project
2. Hierarchy > 3d object > Cube
3. Right-click the Cube and "Set as Default Parent"
4. Cube > Right-Click > Create Empty Parent
ArgumentException is thrown on applying recursive parenting for objects.
An error-explaining warning message should be throw if recursive parenting for objects is not supported.
Reproducible with: 2021.2.0a11, 2021.2.0a1, 2021.1.1f1, 2021.1.0a1, 2020.3.0f1, 2020.2.7f1, 2020.2.0a5
Couldn't test with: 2019.4.22f1, 2020.1.17f1, 2020.2.0a4 (No "Create Empty Parent" feature)
Windows 10 and macOS 10.15
ArgumentException: Gameobject is not a root in a scene
UnityEditor.Undo.MoveGameObjectToScene (UnityEngine.GameObject go, UnityEngine.SceneManagement.Scene scene, System.String name) (at <fcd8871c3b3c490e9ae01fd142b44aa5>:0)
UnityEditor.GOCreationCommands.CreateEmptyParent () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Commands/GOCreationCommands.cs:151)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String options, System.Int32 selected) (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:126)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- Nested checked Menu items return incorrect values when the checking function button is not at the same level
- [VFX Graph] Subgraph error message does not re-appear after reload until graph is dirty
- [VFX Graph] When saving graph with a shortcut (CTRL +S) in graph error does not appear until graph is dirty
- [Android][IL2CPP] Player of a specific project crashes when launching it
- [Android] Keyboard gets hidden when the input field area is clicked and TouchScreenKeyboard.hideInput is set to true