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
- Editor crashes when starting a new game session using Direct3D12 Graphics API
- Play on awake does not work with an audio random container when instantiating a game object
- Play on awake does not work with an audio random container when loading a scene
- Prefab components are not rendered correctly in the Inspector Window when "HideFlags.HideInInspector" is used
- The "Editor.CreateInspectorGUI" method is being called twice when the Console and the Inspector windows are in the same panel
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