Skip to content

EternalColor/Entity-Component-System-Example

Repository files navigation

Unity Entity Component System Example

This is a example game done completly in the new Unity Entity Component System. It was done to show what performance gains are possible with the new Unity Entity Component System.

This code implements systems for pathfinding, enemy finite state machine, collisions (with new Unity Physics), input, inventory, weapon animation (by using slerp and lerp).

I removed all assets except for the scripts that were used in this project, since the meshes ive originaly used in this project might be protected by copyright. The weapon, shield and item meshes were done by me.

This was originaly a school project.

Screenshots

Character Creation

Pick a class

ClassSelect

Spend points on various stats

ClassPoints

Movement / Rotation and Jumping / Gravity

2021-03-30.10-50-51-00.01.04.284-00.01.14.532.mp4

Pick up items

2021-03-30.10-32-56-00.00.08.750-00.00.09.836.mp4

Use Weapon and Shield

2021-03-30.10-32-56-00.00.29.200-00.00.32.457.mp4

Benchmark

The project was tested with 10'000 pathfinding agents, simultanously searching for a path. On my Ryzen 3950x it still performed with an average of 3.2 ms (update rate).

About

Project to demonstrate the new Unity Entity Component System and the new Unity Physics

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages