Battle Talent  V11
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CrossLink.SceneDataLoader Class Reference

Inherits MonoBehaviour.

Public Types

enum class  SceneDataSource { SceneApi , StaticMeshData }
 

Public Member Functions

void LoadMeshes ()
 Loads the scene model from the headset or the provided JSON data.
 
void Rescan ()
 Rescan the scene to update the list of available meshes. More...
 
void LoadStaticMesh (string jsonText)
 Load a static mesh from a JSON string. More...
 
OVRSceneAnchor GetSceneMeshPrefab ()
 

Public Attributes

UnityEvent< Transform > SceneDataLoaded
 
UnityEvent NoSceneModelAvailable
 
UnityEvent NewSceneModelAvailable
 

Static Public Attributes

static SceneDataLoader Instance
 

Member Function Documentation

◆ LoadStaticMesh()

void CrossLink.SceneDataLoader.LoadStaticMesh ( string  jsonText)

Load a static mesh from a JSON string.

◆ Rescan()

void CrossLink.SceneDataLoader.Rescan ( )

Rescan the scene to update the list of available meshes.