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
- Blank, Light-Themed "Create Node" window becomes visible on the next project open
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
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