Пример #1
0
        public static void Log(object message, StackTraceLogType stacktrace = 0)
        {
            StackTraceLogType stackTraceLogType = Application.GetStackTraceLogType(LogType.Log);

            Application.SetStackTraceLogType(LogType.Log, stacktrace);
            Debug.Log(message);
            Application.SetStackTraceLogType(LogType.Log, stackTraceLogType);
        }
Пример #2
0
        public static void LogWarning(object message, UnityEngine.Object context, StackTraceLogType stacktrace = 0)
        {
            StackTraceLogType stackTraceLogType = Application.GetStackTraceLogType(LogType.Log);

            Application.SetStackTraceLogType(LogType.Log, stacktrace);
            Debug.LogWarning(message, context);
            Application.SetStackTraceLogType(LogType.Log, stackTraceLogType);
        }