druk jedności do konsoli
// To print in the console use "Debug.Log()"
Debug.Log("Text");
SkelliBoi
// To print in the console use "Debug.Log()"
Debug.Log("Text");
Debug.Log("This text will print to console");
print("Text you want to print");
// warning
Debug.LogWarning("Text")
// normal text
Debug.Log("Text")
//how to print text when mouse click
using UnityEngine;
using System.Collections;
public class PrintText : MonoBehaviour
{
void Update()
{
if (Input.GetMouseButtonDown(0)
{
Debug.Log("Mouse Down");
}
if (Input.GetMouseButtonUp(0))
{
Debug.Log("Mouse Up")
}
}
}