docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetChanges

    GetChanges(XRRaycast, Allocator)

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

    Declaration
    public virtual TrackableChanges<XRRaycast> GetChanges(XRRaycast defaultRaycast, Allocator allocator)
    Parameters
    Type Name Description
    XRRaycast defaultRaycast

    A default value for XRRaycasts. For backwards compatibility, this should be used to initialize the returned NativeArrays.

    Allocator allocator

    The Allocator to use when allocating the returned NativeArrays.

    Returns
    Type Description
    TrackableChanges<XRRaycast>

    Arrays of added, updated, and removed raycasts since the last call to this method. The changes should be allocated using allocator. The caller owns the memory.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023