Answers for "how to detect trigger unity"

C#
3

how to use triggers in unity

//for collision detection
 void OnCollisionEnter(Collision collision)
{   }
// for use of triggering 
void OnTriggerEnter(Collider other)
{}
Posted by: Guest on May-18-2020
1

on trigger stay unity

private void OnTriggerStay(Collider other)
{
	// Do some stuff
}
Posted by: Guest on April-21-2021

Code answers related to "how to detect trigger unity"

C# Answers by Framework

Browse Popular Code Answers by Language