Method GetBoundary
GetBoundary(TrackableId, Allocator, ref NativeArray<Vector2>)
Gets the boundary vertices of a given BoundedPlane based on its trackableId.
Declaration
public 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 |
| 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. |