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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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