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

RayInteractable Class

Properties

ISurface Surface[Get]
IMovementProvider MovementProvider[Get]
int TiebreakerScore[Get]

Protected Functions

override void Awake ( )
override void Start ( )

Member Functions

Called when the interactor has a set of interactables and is calculating which one is closest.
Parameters
ray
The position and direction of the ray.
hit
The location, normal, and distance of the ray hit.
maxDistance
The maximum ray length.
selectSurface
True if the raycast has hit the selectable part of the <cref="RayInteractable" />, otherwise false.
Returns
Returns true if hit.
Generates movement to move the <cref="RayInteractable" /> from its current position to the target position.
Parameters
to
The target position.
source
The current position.
Returns
Returns the movement that will be applied to the interactable.
Sets all required values for a <cref="RayInteractable" /> on a dynamically instantiated GameObject.
Sets a surface for a dynamically instantiated GameObject.
Sets a select surface for a dynamically instantiated GameObject.
Sets a movement provider for a dynamically instantiated GameObject.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon