“Unity Print vs Debug Log” Respostas de código

Debug.log Unidade

Debug.Log("Hello, World");
Comfortable Caterpillar

Unity Print vs Debug Log

In Unity C#, Debug.Log() and print() are functionally identical
print() is just a bit easier to remember than Debug.Log()

print() is inherited from the MonoBehavior class, so any project without
public class ExampleClass : MonoBehavior {}
will not be able to use print()
MandMs05

Unidade C# Debug.log

using UnityEngine;
using System.Collections;

public class MyGameClass : MonoBehaviour
{
    void Start()
    {
       	Debug.Log("Logging Message to Console");
    	Debug.LogWarning("Logging Warning to Console");
        Debug.LogError("Logging Error to Console");
    }
}
ALeonidou

Respostas semelhantes a “Unity Print vs Debug Log”

Perguntas semelhantes a “Unity Print vs Debug Log”

Mais respostas relacionadas para “Unity Print vs Debug Log” em C#

Procure respostas de código populares por idioma

Procurar outros idiomas de código