Documentation

Unity Engine

Download Unity

Unity Engine

interactionLayers

The Physics layers considered when casting world-space rays to determine the target of pointer events. Any UIDocument with one or more Collider on the Interaction Layers, or with GameObject children with colliders on the Interaction Layers, sends pointer events corresponding to the input rays to
Read time 1 minuteLast updated 7 hours ago

Definition

public LayerMask interactionLayers { get; set; }

Remarks

All layers except the Ignore Raycasts layer are enabled by default.
If World Space input is disabled, this property has no effect.