Sahab Masrour

Component-based Object Pooling in Unity

Object pooling

Recently my Unity project required a generic object pool. In the past, I used more complex systems and needed to use functions like GetComponent to access the spawned object’s components. For myself, I made a mre performant one by removing the complications. This can be found in my GitHub repository A tutorial has been added […]

Develop modular NPC in Unity with FSM (Finite State Machine)

NPC development in Unity with Finite State Machine (FSM)

State Machine is one of the most used design patterns for developing AI or multi-state systems, but not the best. If your are new in game AI and NPC development, learning Finite State Machine design pattern could be a good start point. This design pattern help you to develop your simple NPCs but if you’re […]