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
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
- PolySpatial “Trying to set shader on a Material Variant.” error is printed in the console when entering Play Mode
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
- Placeholder asset is not loaded with Advertisement Legacy sample when using the latest version of the package
- Addressables content build fails but the Player build is successful when building a development build
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