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"); }
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(); }