Struct XrSpatialCapabilityConfigurationAnchorEXT
Capability configuration struct for the anchor capability.
Provided by XR_EXT_spatial_anchor
.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialCapabilityConfigurationAnchorEXT
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 SpatialCapabilityConfigurationAnchorEXT.
Constructors
XrSpatialCapabilityConfigurationAnchorEXT(uint, XrSpatialComponentTypeEXT*)
Construct an instance with a null
next pointer.
Declaration
public XrSpatialCapabilityConfigurationAnchorEXT(uint enabledComponentCount, XrSpatialComponentTypeEXT* enabledComponents)
Parameters
Type | Name | Description |
---|---|---|
uint | enabledComponentCount | The count of elements in |
XrSpatialComponentTypeEXT* | enabledComponents | Pointer to an array of component types to enable for this capability. Must be non-null. |
XrSpatialCapabilityConfigurationAnchorEXT(void*, uint, XrSpatialComponentTypeEXT*)
Construct an instance.
Declaration
public XrSpatialCapabilityConfigurationAnchorEXT(void* next, uint enabledComponentCount, XrSpatialComponentTypeEXT* enabledComponents)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
uint | enabledComponentCount | The count of elements in |
XrSpatialComponentTypeEXT* | enabledComponents | Pointer to an array of component types to enable for this capability. Must be non-null. |
XrSpatialCapabilityConfigurationAnchorEXT(void*, NativeArray<XrSpatialComponentTypeEXT>)
Construct an instance from a native array.
Declaration
public XrSpatialCapabilityConfigurationAnchorEXT(void* next, NativeArray<XrSpatialComponentTypeEXT> enabledComponents)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
NativeArray<XrSpatialComponentTypeEXT> | enabledComponents | Native array of component types to enable for this capability. Must be non-empty. |
XrSpatialCapabilityConfigurationAnchorEXT(NativeArray<XrSpatialComponentTypeEXT>)
Construct an instance with a null
next pointer from a native array.
Declaration
public XrSpatialCapabilityConfigurationAnchorEXT(NativeArray<XrSpatialComponentTypeEXT> enabledComponents)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<XrSpatialComponentTypeEXT> | enabledComponents | Native array of component types to enable for this capability. Must be non-empty. |
Properties
capability
The capability being configured: Anchor.
Declaration
public XrSpatialCapabilityEXT capability { get; }
Property Value
Type | Description |
---|---|
XrSpatialCapabilityEXT |
enabledComponentCount
The count of elements in enabledComponents. Must be greater than 0
.
Declaration
public uint enabledComponentCount { get; }
Property Value
Type | Description |
---|---|
uint |
enabledComponents
Pointer to an array of component types to enable for this capability. Must be non-null.
Declaration
public XrSpatialComponentTypeEXT* enabledComponents { get; }
Property Value
Type | Description |
---|---|
XrSpatialComponentTypeEXT* |
next
null
or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
Type | Description |
---|---|
void* |
type
The XrStructureType
of this struct: SpatialCapabilityConfigurationAnchorEXT.
Declaration
public XrStructureType type { get; }
Property Value
Type | Description |
---|---|
XrStructureType |