ドキュメント

Unity Engine

Unity Engine

PhysicsCallbacks.ITriggerCallback

An interface that when implemented by a Object, can be called as a target by PhysicsWorld.SendTriggerCallbacks.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public interface PhysicsCallbacks.ITriggerCallback

Methods

Method

Description

OnTriggerBegin2DCalled when a PhysicsEvents.TriggerBeginEvent for the object occurs. This will always be called on the main-thread after the simulation has finished.
OnTriggerEnd2DCalled when a PhysicsEvents.TriggerEndEvent for the object occurs. This will always be called on the main-thread after the simulation has finished.