CollisionEnter2D


Declaration

public class CollisionEnter2D : MonoBehaviour

Description

Invokes a custom unity event OnCollisionEnter2D.

Properties

layerMaskThe layers that this object can collide with.
collisionEventThe event invoked during OnCollisionEnter2D.

Methods

OnCollisionEnter2DInvokes the custom unity event in response to OnCollisionEnter2D.