Search Issue Tracker
Fixed in 5.2.7
Fixed in 9.0.2
Votes
0
Found in [Package]
5.2.4
7.0.8
8.0.4
9.0.0
10.0.0-pre.2
Issue ID
DANB-335
Regression
No
"System.ArgumentException" thrown when opening sprite Prefab with Script
How to reproduce:
1. Open the attached project “IN_19742.zip“
2. Press Example → Load SpriteSkin Prefab
3. Observe the Console
Expected result: no exception in the Console
Actual result: exception in the Console
Reproducible with: 5.2.4 (2020.3.41f1), 7.0.8 (2021.3.12f1), 8.0.4 (2022.1.21f1), 9.0.0 (2022.2.0b13, 2023.1.0a16)
Reproducible on: Windows 10 Pro
Notes:
- Not reproducible without com.unity.collections and com.unity.burst packages
- Reproducible the first time after opening the project
Exception:
System.ArgumentException: Could not load Prefab contents at path Assets/SpriteSkin Prefab/SpriteSkinPrefab.prefab. Prefabs should have exactly 1 root GameObject, 2 was found.
at UnityEditor.PrefabUtility.LoadPrefabContents (System.String assetPath) [0x0009a] in <5e26277f966d4f80afa5d51573eba699>:0
at TestLoadPrefabContents.LoadCheckmarkPrefab () [0x00002] in C:\Users\danielius.pliuskys\Downloads\My Projectdadw\Assets\TestLoadPrefabContents.cs:37
UnityEngine.Debug:Log (object)
TestLoadPrefabContents:LoadCheckmarkPrefab () (at Assets/TestLoadPrefabContents.cs:43)
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
- An "RefreshInternalV2 is called before InitialRefresh" error is thrown when opening a project where a build profile with Player settings added is selected
- MeshCollider preview gizmo disappears from the Scene view when overriding the mesh asset using any 3D editing tool
- Tutorial project is not created when started from the Get set up tab
- Audio Listener Component expands when selected
- [iOS] Frame Debugger rendering output doesn't work with iOS builds
Resolution Note:
Fixed for 2D Animation 10.0.0
Resolution Note:
This will be fixed in 2D Animation 5.2.7
Resolution Note:
Fixed for 2D Animation 9.0.2