“Druk Unity vs Desug Log” Kod odpowiedzi

Debug.log Unity

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

Druk Unity vs Desug 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

Unity 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

Odpowiedzi podobne do “Druk Unity vs Desug Log”

Pytania podobne do “Druk Unity vs Desug Log”

Więcej pokrewnych odpowiedzi na “Druk Unity vs Desug Log” w C#

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu