Table of Contents

Method GetFirstRaycast

Namespace
YVR.Core
Assembly
YVR.Core.Runtime.dll

GetFirstRaycast(Vector3, Vector3, Vector2, List<RaycastResult>)

Use event system to get first raycast result

public RaycastResult GetFirstRaycast(Vector3 origin, Vector3 direction, Vector2 scrollDelta = default, List<RaycastResult> raycastResults = null)

Parameters

origin Vector3

Ray origin

direction Vector3

Ray direction

scrollDelta Vector2

ScrollDelta, default to be zero

raycastResults List<RaycastResult>

List to contain all raycast results, default to be null

Returns

RaycastResult