Answers for "void on collision enter 2d"

C#
10

unity oncollisionenter2d

void OnCollisionEnter2D(Collision2D col)
    {
		//This method will run when your 2D game object
      	//collides with something

      	Debug.Log("Collided");
    }
Posted by: Guest on February-15-2020
2

unity 2d collision

void OnCollisionEnter2D(Collision2D col) {
  Debug.Log("Collided with: " + col.gameObject.name);
}
Posted by: Guest on October-14-2020
8

void on collision enter 2d

void OnCollisionEnter2D(Collision2D col)
    {
        Debug.Log("OnCollisionEnter2D");
    }
Posted by: Guest on October-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language