mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
18 lines
472 B
C#
18 lines
472 B
C#
using UnityEditor;
|
|
using UnityEditor.SceneManagement;
|
|
|
|
namespace _Project.Develop.Editor
|
|
{
|
|
[InitializeOnLoad]
|
|
public static class EntryPointSceneAutoLoader
|
|
{
|
|
static EntryPointSceneAutoLoader()
|
|
{
|
|
if (EditorBuildSettings.scenes.Length == 0)
|
|
return;
|
|
|
|
EditorSceneManager.playModeStartScene = AssetDatabase
|
|
.LoadAssetAtPath<SceneAsset>(EditorBuildSettings.scenes[0].path);
|
|
}
|
|
}
|
|
} |