Game Development

What is ScriptableObject and Why You Should Use it?

What is ScriptableObject? ScriptableObject, just like MonoBehaviour is a class that inherits from the base Object class in unity. However, unlike MonoBehaviours ScriptableObjects cannot be attached to a GameObject nor live in the scene. ScriptableObject, in essence, is a data container that can also have method bodies that exist as assets in your Unit project. Because they inherit from the base Object class they also have the Awake, OnEnable, OnDisable, OnDestroy, and OnValidate methods. However,…

Continue reading

Game Development

How to Implement A Generic Modular Object Pooling System In Unity

What is Object Pooling? Object pooling is a software design pattern that creates a pool of ready-to-use objects, rather than creating and destroying objects as needed. The idea behind object pooling is to improve application performance by reusing already instantiated objects instead of creating new ones. This is especially useful in situations where object creation and destruction are expensive, such as games. When working with a large number of objects or when creating objects is…

Continue reading