API reference

OVRSpace Struct

Extends IEquatable< OVRSpace >
Represents a "space" in the Oculus Runtime.

Member Enumerations

Enumeration StorageLocation

Represents a storage location for an OVRSpace.
Local
The storage location is local to the device.
Cloud
The storage location is in the cloud.

Properties

ulong Handle[Get]
A runtime handle associated with this OVRSpace.
This could change between subsequent sessions or apps.
bool Valid[Get]
Indicates whether this OVRSpace represents a valid space (vs a default constructed OVRSpace).

Member Functions

bool TryGetUuid
( out Guid uuid )
Retrieve the universally unique identifier (UUID) associated with this OVRSpace.
Every space that can be persisted will have a UUID associated with it. UUIDs are consistent across different sessions and apps.The UUID of a space does not change over time, but not all spaces are guaranteed to have a UUID.
Parameters
uuid
If successful, the uuid associated with this OVRSpace, otherwise, Guid.Empty.
Returns
Returns true if the uuid could be retrieved, otherwise false.
OVRSpace
( ulong handle )
Constructs an OVRSpace object from an existing runtime handle and UUID.
This constructor does not create a new space. An OVRSpace is a wrapper for low-level functionality in the Oculus Runtime. To create a new spatial anchor, use OVRSpatialAnchor.
Parameters
handle
The runtime handle associated with the space.
override string ToString ( )
Generates a string representation of this OVRSpace of the form "0xYYYYYYYY" where "Y" are the hexadecimal digits of the Handle.
Returns
Returns a string representation of this OVRSpace.
bool Equals
( OVRSpace other )
override bool Equals
( object obj )
override int GetHashCode ( )

Static Member Functions

static bool operator==
( OVRSpace lhs,
OVRSpace rhs )
static bool operator!=
( OVRSpace lhs,
OVRSpace rhs )
static implicit operator OVRSpace
( ulong handle )
static implicit operator ulong
( OVRSpace space )