Answers for "how to know the speed of an object in unity"

C#
0

in unity i want to destroy a gameobject when it hits the edge of the screen

// this does take into account EVERY camera, including the editor view one
// but that shouldn't be a big deal once the game is built

void OnBecameInvisible() {
 	Destroy(gameObject);
}
Posted by: Guest on April-09-2020
0

how do i limit the amount of prefabs in unity using c# script

CancelInvoke("Spawn");
Posted by: Guest on January-26-2020

Code answers related to "how to know the speed of an object in unity"

C# Answers by Framework

Browse Popular Code Answers by Language