Answers for "unity detect if object goes off 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 "unity detect if object goes off screen"

Browse Popular Code Answers by Language