Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to change scenes on collision unity

 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
         SceneManager.LoadScene (2);
 }
 
PREVIOUS NEXT
Tagged: #change #scenes #collision #unity
ADD COMMENT
Topic
Name
9+8 =