API reference

OVRSceneModelLoader Class

Extends MonoBehaviour
Utility for loading a scene model.
Derive from this class to customize the scene loading behavior and respond to events.

Properties

OVRSceneManager SceneManager[Get]
The OVRSceneManager component that this loader will use.

Protected Functions

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

Object Data for protected-static-func

static OVRTask< bool > 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.