Version: 2022.3

ColliderData

struct in UnityEngine

切换到手册

描述

Script interface for particle Collider data.

ColliderData contains information about which Colliders a particle is interacting with. It can be used in the MonoBehaviour.OnParticleTrigger callback, when the Trigger module is enabled.

公共函数

GetColliderRetrieve a specific Collider that a particle iss interacting with.
GetColliderCountReturns how how many Colliders a particle is interacting with.