Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to make a 3d object do something when clicked on

 using UnityEngine;
 using System.Collections;
 
 public class OnMouseDownExample : MonoBehaviour 
 {
     void OnMouseDown()
     {
         print (name);    
     }
 }
Comment

PREVIOUS NEXT
Code Example
Csharp :: dataannotations datetime range 
Csharp :: primitive types c# 
Csharp :: autfac .net 6 
Csharp :: replace multiple characters in string c# 
Csharp :: c# foreach namevaluecollection 
Csharp :: linked list reverse 
Csharp :: parametrizedthreadstart C# 
Csharp :: to list c# 
Csharp :: c# combobox with text and value 
Csharp :: nexo price 
Csharp :: linq find object from id 
Csharp :: ActionExecutingContext result response return 
Csharp :: c# convert double to string 
Csharp :: linq string comparison case insensitive 
Csharp :: declare enum c# 
Csharp :: c# lambdas 
Csharp :: longest substring without repeating characters 
Csharp :: how to get mouse position c# 
Csharp :: finding keys in the registry 
Csharp :: unity dotween sequence 
Csharp :: combine two arraylist c# 
Csharp :: how to get the today date in c# 
Csharp :: how to cut a string in c# 
Csharp :: unity scene switch 
Csharp :: c# centos Regex Username 
Csharp :: How to make enemy shooting 
Csharp :: Unity Object rotation along any axis 
Csharp :: c# invokerequired wpf 
Csharp :: convert string into float C# 
Csharp :: c# enum get string value 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =