Search Issue Tracker
Fixed
Fixed in 2020.3.15f1, 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|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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Resolution Note (fix version 2021.3.15f1):
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.15f1):
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",