#Environment design and ECS
1 messages · Page 1 of 1 (latest)
You can place your character in required positions in Subscene just like you do this with ordinary gameobjects. After conversion entites remain in those positions.
If i do with ordinary gameobjects i don't get the benefict of ecs (sparse memory allocation for gameobjects instead of array of componentdata). isn't it?
If you place objects in subscene they will be converted into entites.
mmm...
i'm testing in the unity sample https://github.com/Unity-Technologies/EntityComponentSystemSamples/blob/master/EntitiesSamples/Assets/HelloCube/README.md
and using a GameObject.FindObjectOfType<MeshRenderer>(); it retrieves the component of a gameobject inside the subscene that should be converted to entity
@carmine terrace I'd suggest to go over some tutorials so they can walk you through basics of working in dots
📌 Download the full project files: https://www.tmg.dev/entities-1-0 📌
👨💻 Code/Scripts from this video: https://www.tmg.dev/entities-1-0-code 👨💻
💬 Come chat with other DOTS/ECS devs: https://tmg.dev/Discord 💬
🚧 Resources Mentioned 🚧
Unity ECS Documentation - https://docs.unity3d.com/Packages/com.unity.entities@1.0/manual/index.html
My Videos...
here's what I think is good for start
oh, you are right! I had the subscene opened in editor. after closing it. The subscene gameobjects are now entities.