Skip to content

Object Check Socket Interactor

eisclimber edited this page Feb 11, 2024 · 2 revisions

Object Check Socket Interactor

class in ExPresSXR.Interaction / Extends class in ExPresSXR.Interaction.HighlightableSocketInteractor
GameObject instantiable via ExPresS XR/Tag Check Socket Interactor

Description

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.

Members

Public Properties

  • string targetObject: The tag that is required to be accepted. An empty string as targetObject will match the "Untagged"-tag.

Inherited Members

Static Methods

  • bool CanHover(IXRHoverInteractable interactable): Determines if a XRGrabInteractable can hover, e.g. is considered a valid target. Can be overwritten but base.CanHover(interactable) should be called to ensure correct behavior.
  • bool CanSelect(IXRSelectInteractable interactable): Determines if a XRGrabInteractable can be selected, e.g. is considered a valid target. Can be overwritten but base.CanSelect(interactable) should be called to ensure correct behavior.
  • bool IsObjectMatch(IXRInteractable interactable): Checks if the tag of the interactable matches the targetObject. Can be overwritten but base.IsObjectMatch(interactable) should be called to ensure correct behavior.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally