Answers for "how to detect when a gameobject leaves the screen"

1

how to detect when a gameobject leaves the screen

void OnBecameInvisible() {         Destroy(gameObject);     }
Posted by: Guest on March-02-2020

Code answers related to "how to detect when a gameobject leaves the screen"

Browse Popular Code Answers by Language