Class XRRaycastSubsystem.Provider | AR Subsystems | 4.2.10
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRRaycastSubsystem.Provider

    An interface to be implemented by providers of this subsystem.

    Inheritance
    object
    SubsystemProvider
    SubsystemProvider<XRRaycastSubsystem>
    XRRaycastSubsystem.Provider
    Inherited Members
    SubsystemProvider.TryInitialize()
    SubsystemProvider.running
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: solution.dll
    Syntax
    public class XRRaycastSubsystem.Provider : SubsystemProvider

    Methods

    Name Description
    Destroy()

    Called when the subsystem is destroyed. Stop() will be called first if the subsystem is running.

    GetChanges(XRRaycast, Allocator)

    Get the changes to raycasts (arrays of added, updated, and removed) since the last call to this method.

    Raycast(XRRaycastHit, Ray, TrackableType, Allocator)

    Performs a raycast from an arbitrary ray against the types specified by trackableTypeMask. Results should be sorted by distance from the ray origin.

    Raycast(XRRaycastHit, Vector2, TrackableType, Allocator)

    Performs a raycast from the camera against the types specified by trackableTypeMask. Results should be sorted by distance from the ray origin.

    RemoveRaycast(TrackableId)

    Removes a raycast previously added with TryAddRaycast(Vector2, float, out XRRaycast) or TryAddRaycast(Ray, float, out XRRaycast)

    Start()

    Called when the subsystem is started. Will not be called again until Stop().

    Stop()

    Called when the subsystem is stopped. Will not be called before Start().

    TryAddRaycast(Ray, float, out XRRaycast)

    Adds a new persistent raycast. Persistent raycasts should be updated automatically until this provider is stopped or destroyed or the raycast is removed with RemoveRaycast(TrackableId).

    TryAddRaycast(Vector2, float, out XRRaycast)

    Adds a new persistent raycast. Persistent raycasts should be updated automatically until this provider is stopped or destroyed or the raycast is removed with RemoveRaycast(TrackableId).

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)