文档

Unity Engine

Unity Engine

GetCollider(int, int)

Retrieve a specific Collider that a particle iss interacting with.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public Component GetCollider(int particleIndex, int colliderIndex)

Parameters

particleIndex

The index of the particle event.

colliderIndex

The index of the collider to obtain.

Returns

Type

Description

ComponentThe Collider or Collider2D Component that a particle is interacting with.