Answers for "unity detect if object is off camera 2d"

1

how to detect when a gameobject leaves the screen

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

Browse Popular Code Answers by Language