Struct XrSpatialAnchorCreateInfoEXT
Creation info struct used by
xrCreateSpatialAnchorEXT(UInt64, in XrSpatialAnchorCreateInfoEXT, out UInt64, out UInt64).
Provided by XR_EXT_spatial_anchor.
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialAnchorCreateInfoEXT
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 SpatialAnchorCreateInfoEXT.
Constructors
XrSpatialAnchorCreateInfoEXT(UInt64, Int64, XrPosef)
Construct an instance with a null next pointer.
Declaration
public XrSpatialAnchorCreateInfoEXT(UInt64 baseSpace, Int64 time, XrPosef pose)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | baseSpace | The base space. |
| Int64 | time | The time. |
| XrPosef | pose | The pose, in OpenXR coordinates. |
XrSpatialAnchorCreateInfoEXT(UInt64, Int64, Vector3, Quaternion)
Construct an instance with a null next pointer from Unity coordinates.
Declaration
public XrSpatialAnchorCreateInfoEXT(UInt64 baseSpace, Int64 time, Vector3 position, Quaternion rotation)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | baseSpace | The base space. |
| Int64 | time | The time. |
| Vector3 | position | The position, in Unity coordinates relative to your XR Origin. |
| Quaternion | rotation | The rotation, in Unity coordinates relative to your XR Origin. |
XrSpatialAnchorCreateInfoEXT(void*, UInt64, Int64, XrPosef)
Construct an instance.
Declaration
public XrSpatialAnchorCreateInfoEXT(void* next, UInt64 baseSpace, Int64 time, XrPosef pose)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| ulong | baseSpace | The base space. |
| Int64 | time | The time. |
| XrPosef | pose | The pose, in OpenXR coordinates. |
XrSpatialAnchorCreateInfoEXT(void*, UInt64, Int64, Vector3, Quaternion)
Construct an instance from Unity coordinates.
Declaration
public XrSpatialAnchorCreateInfoEXT(void* next, UInt64 baseSpace, Int64 time, Vector3 position, Quaternion rotation)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| ulong | baseSpace | The base space. |
| Int64 | time | The time. |
| Vector3 | position | The position, in Unity coordinates relative to your XR Origin. |
| Quaternion | rotation | The rotation, in Unity coordinates relative to your XR Origin. |
Properties
baseSpace
The XrSpace in which pose is applied.
Declaration
public UInt64 baseSpace { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
next
null or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
| Type | Description |
|---|---|
| void* |
pose
The location for the anchor entity, in OpenXR coordinate space.
Declaration
public XrPosef pose { get; }
Property Value
| Type | Description |
|---|---|
| XrPosef |
time
Declaration
public Int64 time { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |
type
The XrStructureType of this struct: SpatialAnchorCreateInfoEXT.
Declaration
public XrStructureType type { get; }
Property Value
| Type | Description |
|---|---|
| XrStructureType |