Struct XrSpatialAnchorCreateInfoEXT
Creation info struct used by
xrCreateSpatialAnchorEXT(ulong, in XrSpatialAnchorCreateInfoEXT, out ulong, out ulong).
Provided by XR_EXT_spatial_anchor
.
Inherited Members
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(ulong, long, Vector3, Quaternion)
Construct an instance with a null
next pointer from Unity coordinates.
Declaration
public XrSpatialAnchorCreateInfoEXT(ulong baseSpace, long time, Vector3 position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
ulong | baseSpace | The base space. |
long | 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(ulong, long, XrPosef)
Construct an instance with a null
next pointer.
Declaration
public XrSpatialAnchorCreateInfoEXT(ulong baseSpace, long time, XrPosef pose)
Parameters
Type | Name | Description |
---|---|---|
ulong | baseSpace | The base space. |
long | time | The time. |
XrPosef | pose | The pose, in OpenXR coordinates. |
XrSpatialAnchorCreateInfoEXT(void*, ulong, long, Vector3, Quaternion)
Construct an instance from Unity coordinates.
Declaration
public XrSpatialAnchorCreateInfoEXT(void* next, ulong baseSpace, long time, Vector3 position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
ulong | baseSpace | The base space. |
long | 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*, ulong, long, XrPosef)
Construct an instance.
Declaration
public XrSpatialAnchorCreateInfoEXT(void* next, ulong baseSpace, long time, XrPosef pose)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
ulong | baseSpace | The base space. |
long | time | The time. |
XrPosef | pose | The pose, in OpenXR coordinates. |
Properties
baseSpace
The XrSpace
in which pose is applied.
Declaration
public ulong 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 long time { get; }
Property Value
Type | Description |
---|---|
long |
type
The XrStructureType
of this struct: SpatialAnchorCreateInfoEXT.
Declaration
public XrStructureType type { get; }
Property Value
Type | Description |
---|---|
XrStructureType |