Version: 2018.1

TriggerModule

struct in UnityEngine

マニュアルに切り替える

説明

Triggers モジュールのスクリプトインターフェース

This module is useful for killing particles when they touch a set of collision shapes, or for calling a script command to let you apply custom particle behaviors when the trigger is activated.


The example code for MonoBehaviour.OnParticleTrigger shows how the callback type action works.


See Also: ParticleSystem, ParticleSystem.trigger.

変数

enabledTrigger モジュールを有効/無効にします。
enterパーティクルがトリガー領域に侵入するときに行うアクションを選択します。
exitパーティクルがトリガー領域を出るときに行うアクションを選択します。
insideパーティクルがトリガー領域の内側にあるときに行うアクションを選択します。
maxColliderCountこのパーティクルシステムトリガーにアタッチできるコライダーの最大数
outsideパーティクルがトリガー領域の外側にあるときに行うアクションを選択します。
radiusScale衝突処理の前にパーティクルそれぞれの大きさに適用される乗数

Public 関数

GetColliderこのパーティクルシステムのトリガーに紐づいたコライダーを取得します。
SetColliderこのパーティクルシステムのトリガーに紐づいたコライダーを設定します。