Skip to content

QueryTriggerInteraction

The QueryTriggerInteraction enumeration is used to control whether a physics query will interact with triggers.

attributesdescription
UseGlobalUse global settings. This is the default option, which means using global settings to determine whether to consider triggers. Global settings can be changed in the static properties of the Physics class.
IgnoreIgnore trigger. If set to ignore, physics queries will ignore triggers and only consider the colliders of other objects.
HitCollides with triggers. If set to Collide, physics queries will consider collisions with trigger colliders.