Search Issue Tracker
Fixed in 2020.3.15f1
Fixed in 2020.3.X, 2021.3.X, 2021.3.15f1
Votes
0
Found in
2020.3.36f1
2021.3.6f1
Issue ID
UUM-8422
Regression
No
[IL2CPP] MissingPropertyBagException fails serialization when using Unity Runtime Scene Serialization and DLL scripts
Reproduction steps:
1. Open the attached "SerializationIssue.zip" project
2. Open the "DLLBugScene" scene
3. Build And Run with IL2CPP
4. Observe the Console in the Player view
Expected result: No errors were logged - serialization succeded
Actual result: A "MissingPropertyBagException" error was logged - serialization failed
Reproduced with: 0.6.0-preview (2020.3.36f1, 2021.3.6f1)
Could not test with: 0.6.0-preview (2022.1.8f1) (could not resolve build failure), 0.6.0-preview (2022.2.0b1, 2023.1.0a3) (could not resolve package errors)
Reproduced on: Windows 10, Windows 11
Package: Unity Runtime Scene Serialization
Error: "MissingPropertyBagException: No PropertyBag was found for Type=\[SerializationTest.TestEmptyClass]. Please make sure all types are declared ahead of time using \[GeneratePropertyBagAttribute], \[GeneratePropertyBagsForTypeAttribute] or \[GeneratePropertyBagsForTypesQualifiedWithAttribute]"
For context, the user is trying to use the Unity Runtime Scene Serialization package in Oculus Quest builds, and they're using a third-party API that uses DLLs. Even if the types are referenced in AOT settings, the DLL scripts fail to get serialized in build while the rest of the scene is working. The problem persists in a very simple DLL containing an almost empty class (Assets/ThirdParty). The user has tried using the RegisterPropertyBagRecursively without success (Assets/Serializer.cs). The "DLLScript" GameObject has a component from the DLL, and after removing this component, a new build successfully serializes the scene
Related forum thread: https://forum.unity.com/threads/runtime-scene-serialization-package-status.1168783/#post-8210691
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
- Entering “NaN” or “Infinity” values in Game Object Brush Orientation value fields spams Quaternion-related errors in the Console and persists unless value is undone in Tile Palette window
- An InvalidOperationException is thrown in the Editor when using On-Tile Rendering with the Mock HMD plug-in
- Unity UI does not trigger "OnFocusLost" and doesn't refresh when focusing on other Windows in the Editor
- Project Auditor's settings cannot be searched in the Preferences window
- Crash on SerializableManagedRef::CallMethod when performing various Unity operations
Resolution Note (fix version 2021.3):
This is fixed by new versions of Runtime Scene Serialization which are expected to be available soon. The package manifest entries for several Unity versions appear below. For the benefit of those who also use AR Companion Core, compatible updated versions of that package are also listed.
Unity 2022.2
"com.unity.runtime-scene-serialization": "1.0.0-exp.3",
"com.unity.ar-companion-core":"3.0.0-exp.3",
Unity 2021.3
"com.unity.runtime-scene-serialization": "1.0.0-exp.3",
"com.unity.ar-companion-core":"3.0.0-exp.3",
Unity 2020.3
"com.unity.runtime-scene-serialization": "0.6.2-preview",
"com.unity.ar-companion-core":"2.0.0-preview",
Unity 2019.4
"com.unity.runtime-scene-serialization": "0.3.7-preview",
"com.unity.ar-companion-core":"1.0.1-preview.2",
Resolution Note (fix version 2020.3):
This is fixed by new versions of Runtime Scene Serialization which are expected to be available soon. The package manifest entries for several Unity versions appear below. For the benefit of those who also use AR Companion Core, compatible updated versions of that package are also listed.
Unity 2022.2
"com.unity.runtime-scene-serialization": "1.0.0-exp.3",
"com.unity.ar-companion-core":"3.0.0-exp.3",
Unity 2021.3
"com.unity.runtime-scene-serialization": "1.0.0-exp.3",
"com.unity.ar-companion-core":"3.0.0-exp.3",
Unity 2020.3
"com.unity.runtime-scene-serialization": "0.6.2-preview",
"com.unity.ar-companion-core":"2.0.0-preview",
Unity 2019.4
"com.unity.runtime-scene-serialization": "0.3.7-preview",
"com.unity.ar-companion-core":"1.0.1-preview.2",