Answers for "unity if gameobject leaves screen"

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