Unity: Don’t Cache in OnTrigger
In a nutshell: steer clear of OnTrigger callbacks when it comes to managing caches. By caches, I’m referring to any collection that monitors the objects within the collider. These callbacks prove unreliable, and Unity currently has no plans to address this behaviour in the immediate future. There’s no assurance that you’ll consistently receive … Read more