コード例 #1
0
        private void Application_logMessageReceived(string condition, string stackTrace, LogType type)
        {
            VC_Log log = new VC_Log(LogTypes.Error, "Unity log callback" + string.Format("Undefined log type: {0}!", type.ToString()));

            switch (type)
            {
            case LogType.Assert:
                log = new VC_Log(LogTypes.Exception, condition + " : stackTrace: " + stackTrace);
                break;

            case LogType.Error:
                log = new VC_Log(LogTypes.Error, condition + " : stackTrace: " + stackTrace);
                break;

            case LogType.Exception:
                log = new VC_Log(LogTypes.Exception, condition + " : stackTrace: " + stackTrace);
                break;

            case LogType.Log:
                log = new VC_Log(LogTypes.Log, condition + " : stackTrace: " + stackTrace);
                break;

            case LogType.Warning:
                log = new VC_Log(LogTypes.Warning, condition + " : stackTrace: " + stackTrace);
                break;
            }
            VConsole.Log(log);
        }
コード例 #2
0
 public static void Help()
 {
     foreach (KeyValuePair <string, VC_FunctionInfo> kvp in VC_FunctionInfo.functionInfos)
     {
         VConsole.Log("Command: " + kvp.Key + "------------| " + kvp.Value.Method.ToString());
     }
 }