RequestSpaceSetup
(
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.
<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 OVRSemanticLabels for creating the string.
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.
Signature
static OVRTask< bool > OVRScene.RequestSpaceSetup(string labels) Parameters labels: string
The types of anchors that the user should define.
Throws ArgumentException
Thrown if labels contains a label that is not one of those provided by OVRSemanticLabels.Classification |
RequestSpaceSetup
(
classifications
)
|
Requests Space Setup using a list of classifications (may be null or empty)
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 or empty, <parmaref name="classifications"> is a list of semantic labels that the user must define during Space Setup. You may specify the same label multiple times. For example,
await RequestSpaceSetup(new [] {Classification.Table, Classification.Table});
would prompt the user to define two tables.
See OVRSemanticLabels.Classification for a list of all 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.
Signature
static OVRTask< bool > OVRScene.RequestSpaceSetup(IReadOnlyList< OVRSemanticLabels.Classification > classifications=null) Parameters classifications: IReadOnlyList< OVRSemanticLabels.Classification >
(Optional) The types of anchors that the user should define.
Throws ArgumentException
Thrown if classifications contains a label that is not one of those provided by OVRSemanticLabels.Classification |