Understanding Component Destruction in Unity

We did a post about what happens when an object is created and initialized. we also did one on different update methods. Now it’s time to see what happens at the end of the object life-cycle with OnDisable() and OnDestroy().

This time, we don’t have so many methods to cover as there are only two of them, but the question remains the same. When they are called, and what should you use them for? ?‍♂️

Continue reading “Understanding Component Destruction in Unity”