Answers for "void on trigger enter unity"

C#
20

unity on trigger enter

//for unity c#

private void OnTriggerEnter(Collider other)
{
    // code
}
Posted by: Guest on April-05-2020
3

unity c# on trigger enter with specific gameobject

void OnTriggerEnter(Collider other)
    {
        if(other.gameObject.name == "Object name") 
			//Object name is the name of the GameObject you want to check for collisions with.
        {
			//What you want to do on trigger enter
        }
    }
Posted by: Guest on August-06-2020
0

void on trigger enter unity

void OnTriggerEnter(Collider other){}
Posted by: Guest on December-18-2020

Code answers related to "void on trigger enter unity"

C# Answers by Framework

Browse Popular Code Answers by Language