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](https://developer.oculus.com/documentation/unity/unity-mr-utility-kit-overview)" instead.

Properties

The OVRSceneManager component that this loader will use.

Protected Functions

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.
Invoked from this component's Start method.
The default behavior is to load the scene model using OVRSceneManager.LoadSceneModel.
Invoked when loading the Scene Model failed because the user has not granted permission to use Scene.
Invoked when the scene model has successfully loaded.
Invoked when there is no scene model available.
The default behavior requests scene capture using OVRSceneManager.RequestSceneCapture.
Invoked when the scene model has changed.
The default behavior loads the scene model using OVRSceneManager.LoadSceneModel.
Invoked when the scene capture succeeds without error.
Invoked when the scene capture encounters an unexpected error.

Object Data for protected-static-func

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