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

OVRSceneModelLoader Class

Utility for loading a scene model.
OVRSceneModelLoader extends MonoBehaviour.

Overview

Properties

The OVRSceneManager component that this loader will use.

Object Data

void
OnStart ( )
Invoked from this component's Start method.
async void
Invoked when loading the Scene Model failed because the user has not granted permission to use Scene.
void
Invoked when the scene model has successfully loaded.
void
Invoked when there is no scene model available.
void
Invoked when the scene model has changed.
void
Invoked when the scene capture succeeds without error.
void
Invoked when the scene capture encounters an unexpected error.

Object Data

static OVRTask< bool >
An async version of Android.Permission.RequestUserPermission

Details

Detailed Description

Derive from this class to customize the scene loading behavior and respond to events.

Properties

OVRSceneManager OVRSceneModelLoader.SceneManager
The OVRSceneManager component that this loader will use.

Object Data

virtual void OVRSceneModelLoader.OnStart ( )
Invoked from this component's Start method.
The default behavior is to load the scene model using OVRSceneManager.LoadSceneModel.
virtual async void OVRSceneModelLoader.OnLoadSceneModelFailedPermissionNotGranted ( )
Invoked when loading the Scene Model failed because the user has not granted permission to use Scene.
virtual void OVRSceneModelLoader.OnSceneModelLoadedSuccessfully ( )
Invoked when the scene model has successfully loaded.
virtual void OVRSceneModelLoader.OnNoSceneModelToLoad ( )
Invoked when there is no scene model available.
The default behavior requests scene capture using OVRSceneManager.RequestSceneCapture.
virtual void OVRSceneModelLoader.OnNewSceneModelAvailable ( )
Invoked when the scene model has changed.
The default behavior loads the scene model using OVRSceneManager.LoadSceneModel.
virtual void OVRSceneModelLoader.OnSceneCaptureReturnedWithoutError ( )
Invoked when the scene capture succeeds without error.
virtual void OVRSceneModelLoader.OnUnexpectedErrorWithSceneCapture ( )
Invoked when the scene capture encounters an unexpected error.

Object Data

static OVRTask< bool > OVRSceneModelLoader.RequestScenePermissionAsync ( )
An async version of Android.Permission.RequestUserPermission
This requests permission for Scene using UnityEngine.Android.Permission.RequestUserPermission. However, it turns the callback-based API into an async API that can be awaited.
Returns
A task that completes when the user grants or denies permission to use Scene.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon