Horje
unity click on 2d object Code Example
unity click on 2d object
// Requires for the object to have a collider and this script attached
private void OnMouseDown()
{
	Debug.Log("Clicked on object!");
}




Csharp

Related
unity movetowards 2d Code Example unity movetowards 2d Code Example
changing euler angles unity Code Example changing euler angles unity Code Example
add leading zeroes in c# Code Example add leading zeroes in c# Code Example
get all files in all subdirectories c# Code Example get all files in all subdirectories c# Code Example
c# 2-dimensional array sort Code Example c# 2-dimensional array sort Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12