OVRSpaceUser
(
spaceUserId
)
|
Creates a space user handle for given Oculus user ID.
Signature
OVRSpaceUser.OVRSpaceUser(ulong spaceUserId) Parameters spaceUserId: ulong
The Facebook user ID obtained from the other party over the network
|
Id
: ulong
[Get] |
The user ID associated with this OVRSpaceUser.
This property is the spaceUserId argument provided to the OVRSpaceUser constructor, or zero if the OVRSpaceUser is not valid (Valid is false).
Signature
ulong OVRSpaceUser.Id |
Valid
: bool
[Get] |
Checks if the user is valid.
The OVRSpaceUser may be invalid if it has been disposed (Dispose) or if it was default-constructed, for example:
void Test(ulong spaceUserId) {
var spaceUser = new OVRSpaceUser(spaceUserId);
Debug.Log(spaceUser.Valid); // True
spaceUser.Dispose();
Debug.Log(spaceUser.Valid); // False
}
Signature
bool OVRSpaceUser.Valid |
Dispose
()
|
Disposes of the OVRSpaceUser.
This method does not destroy the user account. It disposes the handle used to reference it.
Signature
void OVRSpaceUser.Dispose() Returns void |