onTriggerExit#

onTriggerExit(subItemName, otherObjectName)#

SubItemと他のColliderが衝突し終えた時に実行されます。

Parameters:
  • subItemName (string) -- SubItem 名

  • otherObjectName (string) -- 衝突したオブジェクト名

説明#

SubItemの所有権を持つプレイヤーの環境でのみ実行されます。
SubItemと衝突対象のどちらかのColliderは Is Triggertrue である必要があります。
SubItemの衝突判定には自身を含む子孫のColliderが使用されます。

Example#

SubItem 同士の接触が終了すると SubItem の名前がコンソールに出力されます。

function onTriggerExit(subItemName, otherObjectName)
    print("Trigger Exit")
    print(string.format("%s <= %s", subItemName, otherObjectName))
end