Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
preview.17 - 0.5.0
Issue ID
1212362
Regression
No
New IComponentData is not added automatically to an object in a SubScene
How to reproduce:
1. Open attached project "BugSubsceneRepro.zip" and scene "SampleScene"
2. Observe "Entity Debugger" (MyTestData is present, MyTestData2 is not present, expected)
3. In Project window, open "TestData" script
4. Uncomment all the commented lines, save the script
5. Observe "Entity Debugger" (MyTestData is present, MyTestData2 is not present, not expected)
Expected result: both "MyTestData" and "MyTestData2" are present
Actual result: "MyTestData2" is missing
Reproducible with: 2019.2.19f1, 2019.3.0f5, 2020.1.0a20
Coult not test with: 2017.4, 2018.4 due to errors in the console window
Workaround:
1. In Hierarchy window, select the SubScene (in this example "Cube" object)
2. In Inspector window -> SubScene component, press "Edit" button
3. In Hierarchy window, expand the SubScene object (in this example, expand "Cube" object)
4. In Hierarchy window, select the child (in this example, Cube)
5. In Inspector window -> SubScene component, change Data2 values
6. Save the changes
7. Close the Editor mode of the SubScene
8. Observe the Entity Debugger (both "MyTestData" and "MyTestData2" are present)
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
- "Rendering Debugger" displays incorrect overdraw count when using "Unlit/Texture" shader
- Scene and Game views break when the Editor window is snapped with the Microsoft PowerToys
- Materials do not transfer texture when the "Shader" parameter is changed from "Unlit/Texture" to "Universal Render Pipeline/Unlit"
- [Linux][Vulkan] Crash when opening searchable dialog
- The "Shader error in 'AE/Leaves': "Undefined punctual shadow filter algorithm"" error appears when build completes on a specific project
Resolution Note:
This is working as intended. You must use ConverterVersion attribute to 'bump' versions on conversion code so that it knows to reimport the relevant sub scenes. https://docs.unity3d.com/Packages/com.unity.entities@0.5/api/Unity.Entities.ConverterVersionAttribute.html?q=ConverterVersion