OVRSpace
(
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.
Signature
OVRSpace(ulong handle) Parameters handle: ulong
The runtime handle associated with the space.
|
Handle
: ulong
[Get] |
A runtime handle associated with this OVRSpace.
The handle can change between subsequent sessions. To refer to a persistent anchor, use TryGetUuid to get a unique identifier for the anchor.
Signature
ulong Handle |
Valid
: bool
[Get] |
Equals
(
other
)
| |
Equals
(
obj
)
|
Compares for equality with an object.
Signature
override bool Equals(object obj) Parameters obj: object
The object to compare for equality with this space.
Returns override bool
Returns true if obj is an OVRSpace and represents the same space instance as this one, otherwise false.
|
GetHashCode
()
|
Generates a hash code suitable for use in a Dictionary or HashSet
Signature
override int GetHashCode() Returns override int
Returns a hash code suitable for use in a Dictionary or HashSet |
ToString
()
| |
TryGetUuid
(
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.
Signature
bool TryGetUuid(out Guid uuid) Parameters Returns bool
Returns true if the uuid could be retrieved, otherwise false.
|
operator OVRSpace
(
handle
)
| |
operator ulong
(
space
)
| |
operator!=
(
lhs
, rhs
)
|
Compares two spaces for inequality.
This is the logical negation of Equals(OVRSpace).
Signature
static bool operator!=(OVRSpace lhs, OVRSpace rhs) Parameters Returns bool
Returns true if lhs is not equal to rhs , otherwise false.
|
operator==
(
lhs
, rhs
)
|
Compares two spaces for equality.
This is the same equality test as Equals(OVRSpace).
Signature
static bool operator==(OVRSpace lhs, OVRSpace rhs) Parameters Returns bool
Returns true if lhs is equal to rhs , otherwise false.
|
| Member | Description |
|---|---|
Local |
The storage location is local to the device.
|
Cloud |
The storage location is in the cloud.
|