You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was reproducing the HelloCube-Reparenting example, I directly right-clicked on the RotationCube to create a new child object, Cube. This parent-child relationship only exists within the UnityEditor and does not involve ECS Parent and Child components (originally, I thought this relationship would be automatically converted during baking). As a result, I encountered errors when reproducing it on my own (until I initialized attached as false). When I examined the scene of the official example, I noticed that the RotationCube comes with a Child Buffe. I would like to know how this was achieved.
The text was updated successfully, but these errors were encountered:
Remarks
The ParentSystem automatically adds and manages this component and its contents. You can read this list, but you shouldn't add or remove buffer elements.
When an entity with this component is destroyed, the ParentSystem will automatically remove the Parent components from each child entity.
When I was reproducing the HelloCube-Reparenting example, I directly right-clicked on the RotationCube to create a new child object,
Cube
. This parent-child relationship only exists within the UnityEditor and does not involve ECS Parent and Child components (originally, I thought this relationship would be automatically converted during baking). As a result, I encountered errors when reproducing it on my own (until I initializedattached
asfalse
). When I examined the scene of the official example, I noticed that the RotationCube comes with aChild Buffe
. I would like to know how this was achieved.The text was updated successfully, but these errors were encountered: