objectchecksocketinteractor - eisclimber/ExPresS-XR GitHub Wiki

ObjectCheckSocketInteractor

Class in ExPresSXR.Interaction.Interactors

Inherits from HighlightableSocketInteractor

Summary

An Expansion of the HighlightableSocketInteractor to restrict access to a single GameObject specified by targetObject. This allows to check if a special Object was placed in the socket using the OnSelectEntered-Event.

public class ObjectCheckSocketInteractor : HighlightableSocketInteractor

Methods

Name Description
CanHover(IXRHoverInteractable) Determines if a XRGrabInteractable can hover, i.e. is considered a valid target.
Can be overwritten, but base.CanHover(interactable) should be called to ensure correct behavior.
CanSelect(IXRSelectInteractable) Determines if a XRGrabInteractable can be selected, i.e. is considered a valid target.
Can be overwritten, but base.CanSelect(interactable) should be called to ensure correct behavior.

Properties

Name Description
TargetObject Object the socket accepts.
⚠️ **GitHub.com Fallback** ⚠️