Property hitClosestOnly
hitClosestOnly
Whether Unity considers only the closest Interactable as a valid target for interaction.
Declaration
public bool hitClosestOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Enable this to make only the closest Interactable receive hover events. Otherwise, all hit Interactables will be considered valid and this Interactor will multi-hover.