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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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