Struct XrSpatialComponentPlaneAlignmentListEXT
Plane alignment component list structure, used to query component data.
Provided by XR_EXT_spatial_plane_tracking.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialComponentPlaneAlignmentListEXT
Remarks
Warning
Don't initialize this struct with the default parameterless constructor. Use a constructor with parameters to ensure that type is correctly initialized to SpatialComponentPlaneAlignmentListEXT.
Constructors
XrSpatialComponentPlaneAlignmentListEXT(uint, XrSpatialPlaneAlignmentEXT*)
Construct an instance with a null next pointer.
Declaration
public XrSpatialComponentPlaneAlignmentListEXT(uint planeAlignmentCount, XrSpatialPlaneAlignmentEXT* planeAlignments)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | planeAlignmentCount | The count of elements in |
| XrSpatialPlaneAlignmentEXT* | planeAlignments | Pointer to an array of plane alignment components. Must be non-null. |
XrSpatialComponentPlaneAlignmentListEXT(void*, uint, XrSpatialPlaneAlignmentEXT*)
Construct an instance.
Declaration
public XrSpatialComponentPlaneAlignmentListEXT(void* next, uint planeAlignmentCount, XrSpatialPlaneAlignmentEXT* planeAlignments)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| uint | planeAlignmentCount | The count of elements in |
| XrSpatialPlaneAlignmentEXT* | planeAlignments | Pointer to an array of plane alignment components. Must be non-null. |
XrSpatialComponentPlaneAlignmentListEXT(void*, NativeArray<XrSpatialPlaneAlignmentEXT>)
Construct an instance from a native array.
Declaration
public XrSpatialComponentPlaneAlignmentListEXT(void* next, NativeArray<XrSpatialPlaneAlignmentEXT> planeAlignments)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| NativeArray<XrSpatialPlaneAlignmentEXT> | planeAlignments | Native array of plane alignment components. Must be non-empty. |
XrSpatialComponentPlaneAlignmentListEXT(void*, ReadOnly)
Construct an instance from a read-only native array.
Declaration
public XrSpatialComponentPlaneAlignmentListEXT(void* next, NativeArray<XrSpatialPlaneAlignmentEXT>.ReadOnly planeAlignments)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| NativeArray<XrSpatialPlaneAlignmentEXT>.ReadOnly | planeAlignments | Read-only native array of plane alignment components. Must be non-empty. |
XrSpatialComponentPlaneAlignmentListEXT(NativeArray<XrSpatialPlaneAlignmentEXT>)
Construct an instance with a null next pointer from a native array.
Declaration
public XrSpatialComponentPlaneAlignmentListEXT(NativeArray<XrSpatialPlaneAlignmentEXT> planeAlignments)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<XrSpatialPlaneAlignmentEXT> | planeAlignments | Native array of plane alignment components. Must be non-empty. |
XrSpatialComponentPlaneAlignmentListEXT(ReadOnly)
Construct an instance with a null next pointer from a read-only native array.
Declaration
public XrSpatialComponentPlaneAlignmentListEXT(NativeArray<XrSpatialPlaneAlignmentEXT>.ReadOnly planeAlignments)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<XrSpatialPlaneAlignmentEXT>.ReadOnly | planeAlignments | Read-only native array of plane alignment components. Must be non-empty. |
Properties
next
null or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
| Type | Description |
|---|---|
| void* |
planeAlignmentCount
The count of elements in planeAlignments. Must be greater than 0.
Declaration
public uint planeAlignmentCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
planeAlignments
Pointer to an array of plane alignment components. Must be non-null.
Declaration
public XrSpatialPlaneAlignmentEXT* planeAlignments { get; }
Property Value
| Type | Description |
|---|---|
| XrSpatialPlaneAlignmentEXT* |
type
The XrStructureType of this struct: SpatialComponentPlaneAlignmentListEXT.
Declaration
public XrStructureType type { get; }
Property Value
| Type | Description |
|---|---|
| XrStructureType |