Hi, I am using 2D by having some GameObjects that follow my Entities. I see multiple ways to go:
- Create Gameobjects in the scene and put them as properties on my Gameobject which is then baked into an entity (and adds a ComponentObject pointing to
authoring.toTrack). - Do the same but use prefabs which I instantiate in the the baking process. This seems buggy to me -> Multiple Gameobjects are sometimes created, and they don't seem to be destroyed when the game ends.
- Another way?
Then I have some managed systems, that just copy the entity position to the ToTrack.Value.transform.position to have the gameobject follow the entity. Is this the way to go? And which of the ways 1-3 is preferred?