Version: 2023.1

CompositeCollider2D.GetCompositedColliders

切换到手册
public int GetCompositedColliders (List<Collider2D> colliders);

参数

colliders A list of Collider2D that are being composited.

返回

int The number of colliders returned.

描述

When any Collider2D is using any composite operation other than Collider2D.CompositeOperation.None then it is used by this CompositeCollider2D.

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

See Also: Collider2D.compositeOperation and Collider2D.compositeOrder.