기술 자료

Unity Engine

Unity Engine

GetCompositedColliders

When any Collider2D is using any composite operation other than Collider2D.CompositeOperation.None then it is used by this CompositeCollider2D.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule

GetCompositedColliders(List<Collider2D>)

When any Collider2D is using any composite operation other than Collider2D.CompositeOperation.None then it is used by this CompositeCollider2D.
public int GetCompositedColliders(List<Collider2D> colliders)

Parameters

A list of Collider2D that are being composited.

Returns

Type

Description

intThe number of colliders returned.

Remarks

The order of the Collider2D returned is sorted into ascending composite order as defined by Collider2D.compositeOrder.

GetCompositedColliders(Allocator)

TODO.
public ColliderArray2D GetCompositedColliders(Allocator allocator = Allocator.Temp)

Parameters

allocator

The memory allocator to use for the results. This can only be Allocator.Temp, Allocator.TempJob or Allocator.Persistent.

Returns

Type

Description

ColliderArray2D