Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity right click on gameobject

private void OnMouseOver()
    {
        if(Input.GetMouseButtonDown(1))
        {
            Debug.Log("The gameObject has been right clicked");
        }
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: quit button unity 
Csharp :: draw sphere gizmo unity 
Csharp :: c# textboxaccept only numbers 
Csharp :: how to get ip address in c# 
Csharp :: get date of tomorrow c# 
Csharp :: c# save bytes array to file 
Csharp :: dictionary namespace c# 
Csharp :: change sprite of gameobject unity 
Csharp :: write string multiple times c# 
Csharp :: unity play particle system 
Csharp :: c# string to memorystream 
Csharp :: degree to radians c# 
Csharp :: how to download file from url using c# 
Csharp :: c# random color 
Csharp :: print in c# 
Csharp :: dotnet executable directory 
Csharp :: unity change sprite source image 
Csharp :: laravel route redirect 
Csharp :: unity script detect if in prefab edition mode 
Csharp :: remove repeated items in a list unity 
Csharp :: system command in c# 
Csharp :: scenemanager c# 
Csharp :: get all files in all subdirectories c# 
Csharp :: c# get next item in list 
Csharp :: OnCollision update unity 
Csharp :: message box in visual studio 
Csharp :: website link in unity 
Csharp :: get string name of dropdown in unity 
Csharp :: c# winforms tooltip 
Csharp :: C# multiple button click event to password textbox 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =