ドキュメント

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.