We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb1a39 commit ed768e9Copy full SHA for ed768e9
AdditiveSceneManager/AdditiveSceneManager.cs
@@ -0,0 +1,35 @@
1
+using System.Collections;
2
+using System.Collections.Generic;
3
+using UnityEngine;
4
+using UnityEngine.SceneManagement;
5
+
6
+[System.Serializable]
7
+public class AdditiveSceneRef {
8
+ public string scene_name;
9
+ public Object scene_ref;
10
+}
11
12
+public class AdditiveSceneManager : MonoBehaviour
13
+{
14
15
+ // Global instance
16
+ public static AdditiveSceneManager Instance;
17
18
+ // List of scenes
19
+ public AdditiveSceneRef[] scenes;
20
21
+ // Adictionary of scenes based on `scenes`; generated
22
23
24
+ // Awake
25
+ private void Awake() {
26
+ Instance = this;
27
+ }
28
29
+ // Add Scene from `scenes` to scene
30
+ public void AddScene(string quuery) {
31
32
33
34
35
0 commit comments