API reference
API reference
Select your platform
No SDKs available
No versions available

OVRScene Class

Functionality related to Scene Understanding.

Overview

Static Public Member Functions

static OVRTask< bool >
RequestSpaceSetup
( string labels )
Requests Space Setup.

Details

Detailed Description

Static Member Functions

static OVRTask< bool > OVRScene.RequestSpaceSetup
( string labels )
Requests Space Setup.
Requests Space Setup. Space Setup pauses the application and prompts the user to setup their Space. The app resumes when the user either cancels or completes Space Setup.
If not null, <parmaref name="labels"> is a collection of comma-separated list of semantic labels that the user must define during Space Setup. You may specify the same label multiple times. For example,
await RequestSpaceSetup("TABLE,TABLE");
would prompt the user to define two tables.
See OVRSceneManager.Classification for the list of valid semantic labels.
This method is asynchronous. The result of the task indicates whether the operation was successful. False usually indicates an unexpected failure; if the user cancels Space Setup, the operation still completes successfully.
Parameters
labels
(Optional) The types of anchors that the user should define.
Returns
A task that can be used to track the asynchronous operation.
Exceptions
ArgumentException
Thrown if labels contains a label that is not one of those provided by OVRSceneManager.Classification
Did you find this page helpful?
Thumbs up icon
Thumbs down icon