Search Issue Tracker

By Design

Votes

0

Found in [Package]

0.1.1

Issue ID

1194144

Regression

No

GameObjects in Subscenes are converted to Entities when EditorOnly tag is applied

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the user-submitted project's SampleScene
2. Select SubScene in the Hierarchy
3. Press Rebuild Entity Cache in the Inspector

Expected result: Cube (1) GameObject is not converted to an Entity
Actual result: Cube (1) GameObject is converted to an Entity

Reproducible with: 2019.2.12f1 (Entities 0.0.12-preview.33, 0.1.1), 2019.3.0b10 (Entities 0.1.1), 2020.1.0a12 (Entities 0.1.1)

Notes:
Converting Subscene GameObjects to Entities did not work on Entities 0.0.12-preview.32 and below because Hash128.Equals method was not implemented.
Unity versions 2018.4.12f1 and below do not support affected package versions, therefore the issue is not reproducible.

  1. Resolution Note:

    The EditorOnly tag should not be used to opt-out of conversion. Conversion also happens in the editor, so using the EditorOnly tag for that is bound to create confusion. We have plans for providing a way to opt-out of conversion per GameObject that will land before the package goes out of preview.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.