Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2020.2.0a5
2020.3
2021.1
2021.2
2021.2.0a11
Issue ID
1324389
Regression
No
[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
Actual Result:
ArgumentException is thrown on applying recursive parenting for objects.
Expected Result:
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)
Environment:
Windows 10 and macOS 10.15
Stack Trace:
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.
Latest issues
- “FocusController has unprocessed focus events.” warnings are thrown after adding iOS, tvOS or visionOS Build Profiles
- Holes and different colors appear on default Tree Materials after applying them to the Tree GameObject and undoing changes
- Error indicating that the Text Asset Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
- Documentation installation shows "Install failed: Validation Failed" when installing Android Build Support module
- Error indicating that the Package Manifest Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
Add comment