unity console log code example

Example 1: unity print to console

// To print in the console use "Debug.Log()"
Debug.Log("Text");

Example 2: debug.log unity

Debug.Log("Hello, World");

Example 3: javascript log to console

const varName = 'this variable';

console.log(varName);

Example 4: debug log unity

Debug.Log("Hello World");

Example 5: php console print

$a = array(
 null => 'a',
 true => 'b',
 false => 'c',
 0 => 'd',
 1 => 'e',
 '' => 'f'
);

echo count($a), "\n";

Example 6: unity log

Debug.Log("Text: " + myText.text);

Tags:

Java Example