Version: 2019.1
public static ILogger unityLogger ;

Description

Get default debug logger.

Записывает сообщение в Консоль Unity.

See Also: ILogger, ILogHandler.

using UnityEngine;
using System.Collections;

public class MyGameClass : MonoBehaviour { private static ILogger logger = Debug.unityLogger; private static string kTAG = "MyGameTag";

void MyGameMethod() { logger.Log(kTAG, "Hello");

Debug.unityLogger.Log(kTAG, "World"); } }