docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetBoundary

    GetBoundary(TrackableId, Allocator, ref NativeArray<Vector2>)

    Gets the boundary vertices of a given BoundedPlane based on its trackableId.

    Declaration
    public virtual void GetBoundary(TrackableId trackableId, Allocator allocator, ref NativeArray<Vector2> boundary)
    Parameters
    Type Name Description
    TrackableId trackableId

    The TrackableId of a BoundedPlane.

    Allocator allocator

    An Unity.Collections.Allocator to use if boundary needs to be created. Unity.Collections.Allocator.Temp is not supported. Use Unity.Collections.Allocator.TempJob if you need temporary memory.

    NativeArray<Vector2> boundary

    The boundary vertices will be stored here. If the given array is the same length as the number of vertices, it is overwritten with the new data. Otherwise, it is disposed and recreated with the correct length.

    Remarks

    See CreateOrResizeNativeArrayIfNecessary<T>(int, Allocator, ref NativeArray<T>) for a helper method implementation.

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