Documentation

Unity Engine

Download Unity

Unity Engine

maxInteractionDistance

The maximal distance considered when casting world-space rays to determine the target of pointer events.
Read time 1 minuteLast updated a month ago

Definition

public float maxInteractionDistance { get; set; }

Remarks

The default Raycasting Distance is Mathf.Infinity.
If World Space input is disabled, this property has no effect.