using Unity.Collections; using UnityEngine.XR.ARSubsystems; namespace UnityEngine.XR.ARFoundation { /// /// An interface for performing raycasts against trackables. Generally implemented by /// derived classes of . /// internal interface IRaycaster { /// /// Performs a raycast. /// /// A ray, in session space. /// The types of raycast to perform. /// The type of memory allocation to use for the array returned by this raycast. /// An array of raycast results. NativeArray Raycast( Ray sessionSpaceRay, TrackableType trackableTypeMask, Allocator allocator); } }