API reference
API reference
Select your platform
No SDKs available
No versions available

SnapInteractor Class

SnapInteractors can snap to poses provided by SnapInteractables.
SnapInteractors select and unselect in response to a PointableElement. SnapInteractors hover when the PointableElement has selecting pointers and snap to the best SnapInteractable pose when the PointableElement has no more selecting pointers.

Properties

IPointableElement PointableElement[Get]
Rigidbody Rigidbody[Get]
Pose SnapPose[Get]
float DistanceThreshold[Get]

Protected Functions

virtual override void Awake ( )
virtual override void Start ( )
virtual override void OnEnable ( )
virtual override void OnDisable ( )
virtual override bool ComputeShouldSelect ( )
virtual override bool ComputeShouldUnselect ( )
virtual override void DoHoverUpdate ( )
virtual override void DoSelectUpdate ( )
override void InteractableSet
( SnapInteractable interactable )
override void InteractableUnset
( SnapInteractable interactable )
override void InteractableSelected
( SnapInteractable interactable )
override void InteractableUnselected
( SnapInteractable interactable )
virtual void HandlePointerEventRaised
( PointerEvent evt )
virtual override void DoPreprocess ( )
Pose ComputePointerPose ( )
virtual override SnapInteractable ComputeCandidate ( )

Member Functions

Sets all required values for a <cref="SnapInteractor" /> on a dynamically instantiated GameObject.
Sets a <cref="PointableElement" /> on a dynamically instantiated GameObject.
Sets a Rigidbody on a dynamically instantiated GameObject.
Sets a snap point on a dynamically instantiated GameObject.
Sets a time out interactable on a dynamically instantiated GameObject.
Sets a timeout on a dynamically instantiated GameObject.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon