Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

debug.log unity

Debug.Log("Hello, World");
Comment

debug.log unity

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");
    }
}
Comment

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()
Comment

PREVIOUS NEXT
Code Example
Csharp :: string to camel case c# 
Csharp :: c# performance timer 
Csharp :: c# remove first 5 characters from string 
Csharp :: null coalescing operator c# 
Csharp :: xmldocument to c# object 
Csharp :: byte array to base64 c# 
Csharp :: write last element of dictionary c# 
Csharp :: c# datagridview rows clear not working 
Csharp :: single line and multiline comments in c 
Csharp :: switch expression c# 
Csharp :: c# get foreground window 
Csharp :: c# settings file 
Csharp :: how to know character is a digit or not in c# 
Csharp :: array of strings by splitting lines c# 
Csharp :: integer required asp.net core 
Csharp :: how to get total scenes unity 
Csharp :: multiplication using arrays 
Csharp :: unity how to destroy child 
Csharp :: socket io connect to namespace 
Csharp :: c# get custom attribute from property 
Csharp :: check if an object is active unity 
Csharp :: c# binary search 
Csharp :: c# string slice 
Csharp :: msbuild publish to folder command line .net 
Csharp :: unity yield return 
Csharp :: To CharArray 
Csharp :: Data at the root level is invalid. Line 1, position 1. 
Csharp :: c# tostring decimal 2 places 
Csharp :: Raycasting to find mouseclick on Object in unity 2d games 
Csharp :: c# add key value pair to dictionary 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =