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

OVRSceneModelLoader Class

Extends MonoBehaviour
Utility for loading a scene model.
Derive from this class to customize the scene loading behavior and respond to events.
This class and subclasses typically call OVRSceneManager.LoadSceneModel as part of its operation.
"OVRSceneModelLoader and associated classes are deprecated (v65), please use MR Utility Kit" instead.

Protected Properties

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

Protected Methods

OnLoadSceneModelFailedPermissionNotGranted ()
Invoked when loading the Scene Model failed because the user has not granted permission to use Scene.
Signature
virtual async void OnLoadSceneModelFailedPermissionNotGranted()
Returns
async void
OnNewSceneModelAvailable ()
Invoked when the scene model has changed.
The default behavior loads the scene model using OVRSceneManager.LoadSceneModel.
Signature
virtual void OnNewSceneModelAvailable()
Returns
void
OnNoSceneModelToLoad ()
Invoked when there is no scene model available.
The default behavior requests scene capture using OVRSceneManager.RequestSceneCapture.
Signature
virtual void OnNoSceneModelToLoad()
Returns
void
OnSceneCaptureReturnedWithoutError ()
Invoked when the scene capture succeeds without error.
Signature
virtual void OnSceneCaptureReturnedWithoutError()
Returns
void
OnSceneModelLoadedSuccessfully ()
Invoked when the scene model has successfully loaded.
Signature
virtual void OnSceneModelLoadedSuccessfully()
Returns
void
OnStart ()
Invoked from this component's Start method.
The default behavior is to load the scene model using OVRSceneManager.LoadSceneModel.
Signature
virtual void OnStart()
Returns
void
OnUnexpectedErrorWithSceneCapture ()
Invoked when the scene capture encounters an unexpected error.
Signature
virtual void OnUnexpectedErrorWithSceneCapture()
Returns
void
Start ()
Override of the Unity MonoBehaviour Start() method.
Start() is called on the frame when a script is enabled, just before any of the Update() methods are called for the first time.
Signature
virtual void Start()
Returns
void

Protected Static Methods

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.
Signature
static OVRTask< bool > RequestScenePermissionAsync()
Returns
OVRTask< bool >  A task that completes when the user grants or denies permission to use Scene.