
Building Leyborn’s World: ECS Camera & Input Integration
What We Did
This update adds an ECS-driven camera control system, fully integrated with Unity’s Input System. Highlights:
- Track camera position and zoom.
- Mark the camera entity for the player.
- Handle movement and zoom based on player input.
Why It Matters
- ECS-aligned camera logic: No more tacked-on camera scripts. Input and movement are now part of the simulation.
- Multiplayer ready: Player tags make it trivial to support multiple cameras or player perspectives.
- Clean sync between GameObjects and ECS: Hybrid setup lets us transition gradually without blocking development.
- Scalability: ECS handles input and movement cleanly across threads. Better performance, more flexibility, less overhead.
Next Steps
We’re populating the region map with resource entities. Natural elements like trees and rocks that lay the groundwork for harvesting, regrowth, and terrain interaction.
- Spawn resource entities.
- Load visual assets.
- Support future mechanics like resource harvesting and regrowth.