文档

Unity Engine

Unity Engine

composite

Get the CompositeCollider2D that is available to be attached to the collider.
阅读时间1 分钟最后更新于 4 小时前

Definition

public CompositeCollider2D composite { get; }

Remarks

Gets any CompositeCollider2D that this Collider2D would use if the Collider geometry is being composited using Collider2D.compositeOperation or returns null if no CompositeCollider2D were available.