#Environment design and ECS

1 messages · Page 1 of 1 (latest)

carmine terrace
#

Hello, I'm new to dots.
I want to create a scene where tons of npc walks (only left and right from their starting pos) but I want to choose their starting pos in an easy way (from the scene, not full code).
can you suggest me something?

tranquil birch
#

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.

carmine terrace
#

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?

tranquil birch
#

If you place objects in subscene they will be converted into entites.

carmine terrace
#

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

GitHub

Contribute to Unity-Technologies/EntityComponentSystemSamples development by creating an account on GitHub.

tawny pagoda
#

Is your subscene closed?

#

Or have you left it open

teal copper
#

@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...

▶ Play video
#

here's what I think is good for start

carmine terrace