Second commit
This commit is contained in:
commit
36840f3ad4
999 files changed
+61364
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
using UnityEditor.SceneManagement;
|
||||
using UnityEngine;
|
||||
|
||||
[InitializeOnLoad]
|
||||
public class StartFromBootstrap
|
||||
{
|
||||
static StartFromBootstrap()
|
||||
{
|
||||
var scenePath = "Assets/Infrastructure/Bootstrap.unity";
|
||||
var sceneAsset = AssetDatabase.LoadAssetAtPath<SceneAsset>(scenePath);
|
||||
|
||||
if (sceneAsset != null)
|
||||
EditorSceneManager.playModeStartScene = sceneAsset;
|
||||
else
|
||||
Debug.LogError("Could not find scene at " + scenePath);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user