using System.Collections; using System.Collections.Generic; using UnityEngine; namespace ConsoleUtility { static class ConsoleUtility { [RuntimeInitializeOnLoadMethod] static void CreateConsole() { var prefab = GameObject.Instantiate(Resources.Load("Console")); prefab.name = "Console"; GameObject.DontDestroyOnLoad(prefab); } } }