Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity 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")
        }
    }
}
 
PREVIOUS NEXT
Tagged: #unity #print
ADD COMMENT
Topic
Name
9+1 =