UnityEngine.DebugLogHandler.LogFormat C# (CSharp) Method

LogFormat() public method

public LogFormat ( LogType logType, UnityEngine context, string format ) : void
logType LogType
context UnityEngine
format string
return void
        public void LogFormat(LogType logType, UnityEngine.Object context, string format, params object[] args)
        {
            Internal_Log(logType, string.Format(format, args), context);
        }
    }

Usage Example

コード例 #1
0
        public static void LogFormat(LogType logType, LogOption logOptions, Object context, string format, params object[] args)
        {
            DebugLogHandler debugLogHandler = Debug.unityLogger.logHandler as DebugLogHandler;
            bool            flag            = debugLogHandler == null;

            if (flag)
            {
                Debug.unityLogger.LogFormat(logType, context, format, args);
            }
            else
            {
                debugLogHandler.LogFormat(logType, logOptions, context, format, args);
            }
        }