Answers for "checking 2d collision unity"

C#
1

on collision 2d unity

//Detects when collided with a 2D collider
//make sure to add box collider 2D and tick the is Trigger checkbox
//then create a script and add this in it
    void OnCollisionEnter2D(Collision2D col)
    {
        Debug.Log("2D Collision");
    }
Posted by: Guest on February-25-2022

C# Answers by Framework

Browse Popular Code Answers by Language