Search Issue Tracker
By Design
Votes
0
Found in [Package]
0.11.1-preview.4
Issue ID
1257858
Regression
No
Incorrect Entity gets returned when using GameObjectConversionSystem.GetPrimaryEntity function for converted Prefabs in SubScene
How to reproduce:
1. Open the attached project's Scene labeled "Test"
2. Enter the Play Mode
3. In the Hierarchy, enable the "Prefabs" SubScene's checkbox
4. Observe the Entities Window (Windows->DOTS->Entities)
5. Compare the Entity Window's and Console's values
Expected result: Entities Window's and Console Window's Entity Indexes match together
Actual result: Entities Window's and Console Window's Entity Indexes don't match
Reproducible with: 2019.4.3f1, 2020.1.0b16, 2020.2.0a18 (0.1.0-preview, 0.11.1-preview.4)
Couldn't test with: 2018.4.25f1 (Entities Package is not available)
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
- [Android][Vulkan] Crash on /system/lib/libandroid.so (ANativeWindow_setBuffersGeometry+4) when the Vulkan Graphics API is used
- Event handlers are preventing operations when trying to copy or paste HTML text in the WebGL Player
- [macOS] Crash on __pthread_kill when Exporting a Package while another export is in progress
- Crash on TransformAccessDestroyCallback when removing a URP Decal Projector component from a parent GameObject that had a URP Decal Projector child GameObject
- [ShaderGraph][URP Sample] Shader error in 'Shader Graphs/Screen_Graph': 'SHADERGRAPH_BAKED_GI'
Resolution Note:
The conversion of entities happens in a separate world. The entities are copied to the default world after conversion. You must not rely on the entity indices that were valid during conversion, because they will change when the entities are moved to the main world.