예제 #1
0
파일: Console.cs 프로젝트: PeryB88/Console
        void OnEnable()
        {
            if (s_ConsoleData == null)
            {
                s_ConsoleData = new ConsoleData();
                s_ConsoleData.AutoRegisterConsoleCommands();
            }
            s_ConsoleData.OnLogUpdated = UpdateLog;
            s_Console = this;

            Application.logMessageReceived += HandleUnityLog;

            Log("Console initialized successfully");
        }
예제 #2
0
        void OnEnable()
        {
            s_ConsoleData = new ConsoleData();
            s_ConsoleData.AutoRegisterConsoleCommands();

            s_ConsoleData.OnLogUpdated = UpdateLog;
            s_Console = this;

            Application.logMessageReceived += HandleUnityLog;

            LogText.font.RequestCharactersInTexture("qwertyuiopasdfghjklzxcvbnmQWERYTUIOPASDFGHJKLZXCVBNM1234567890~`!@#$%^&*()_+{}[]:;\"'/.,?><");

            Log("Console initialized successfully");
            UpdateLog();
        }