TriggerEnter2D


Declaration

public class TriggerEnter2D : MonoBehaviour

Description

Invokes a custom unity event OnTriggerEnter2D.

Properties

layerMaskThe layers that this object can collide with.
triggerEventThe event invoked during OnTriggerEnter2D.

Methods

OnTriggerEnter2DInvokes the custom unity event in response to OnTriggerEnter2D.