objectchecksocketinteractor - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Interaction.Interactors
Inherits from HighlightableSocketInteractor
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| 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. |
| Name | Description |
|---|---|
| TargetObject | Object the socket accepts. |