Struct XrSpatialAnchorParentANDROID
Chains into next to specify a parent spatial entity
when creating a bound anchor via xrCreateSpatialAnchorEXT.
Provided by XR_ANDROID_spatial_entity_bound_anchor.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialAnchorParentANDROID
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 SpatialAnchorParentANDROID.
Constructors
XrSpatialAnchorParentANDROID(ulong)
Initializes a new instance of XrSpatialAnchorParentANDROID with next set to null.
Declaration
public XrSpatialAnchorParentANDROID(ulong parentId)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | parentId | The entity ID of the spatial entity to attach the anchor to. |
XrSpatialAnchorParentANDROID(void*, ulong)
Initializes a new instance of XrSpatialAnchorParentANDROID.
Declaration
public XrSpatialAnchorParentANDROID(void* next, ulong parentId)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next |
|
| ulong | parentId | The entity ID of the spatial entity to attach the anchor to. |
Properties
next
null or a pointer to the next structure in a structure chain. No valid next structures are defined.
Declaration
public void* next { get; }
Property Value
| Type | Description |
|---|---|
| void* |
parentId
The XrSpatialEntityIdEXT of the spatial entity to attach the anchor to.
Declaration
public ulong parentId { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
type
The XrStructureType of this struct: SpatialAnchorParentANDROID.
Declaration
public XrStructureType type { get; }
Property Value
| Type | Description |
|---|---|
| XrStructureType |