iscloseuphandinteractor - eisclimber/ExPresS-XR GitHub Wiki

RuntimeUtils.IsCloseUpHandInteractor(IXRInteractor,bool)

Method in RuntimeUtils

Summary

Checks if an interactor is capable of close-up interactions usually done with a hand like grabbing or poking. Has an optional option for NearFarInteractors, checking if it is currently selecting 'near'. This does not work for hovering.

public static bool IsCloseUpHandInteractor(IXRInteractor interactor, bool includeNearFar = false)

Parameters

Name Description
UnityEngine.XR.Interaction.Toolkit.Interactors.IXRInteractor interactor Interactor in question.
bool includeNearFar Allows if an NearFarSelectors too. Default: false

Returns

If the interactor considered a close up hand interactor.

⚠️ **GitHub.com Fallback** ⚠️