Answers for "how to set trigger unity"

C#
1

how to use triggers unity

void OnTriggerEnter(Collider other)
{
	Debug.Log("Object Entered the trigger");
}

void OnTriggerStay(Collider other)
{
	Debug.Log("Object is within the trigger");
}

void OnTriggerExit(Collider other)
{
	Debug.Log("Object Exited the trigger");
}
Posted by: Guest on June-13-2021

C# Answers by Framework

Browse Popular Code Answers by Language