Version: 2023.1
LanguageEnglish
  • C#

CompositeOperation

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Specifies the composite operation to be used by a Collider2D.

Properties

NoneIndicates that a CompositeCollider2D will not be used i.e. no composite operation will take place.
MergeIndicates a composite operation that composes geometry using a Boolean OR operation.
IntersectIndicates a composite operation that composes geometry using a Boolean AND operation.
DifferenceIndicates a composite operation that composes geometry using a Boolean NOT operation.
FlipIndicates a composite operation that composes geometry using a Boolean XOR operation.