Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity mouse button names

void Update()
{
    if (Input.GetMouseButton(0))
    {
        Debug.Log("Left Mouse Button Down");
    }

    if (Input.GetMouseButton(1))
    {
        Debug.Log("Right Mouse Button Down");
    }

    if (Input.GetMouseButton(2))
    {
        Debug.Log("Middle Mouse Button Down");
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: structure in c sharp with example 
Csharp :: unity get distance between line and point 
Csharp :: minimum of three numbers 
Csharp :: c# xunit theory classdata model 
Csharp :: c# if statement no braces 
Csharp :: drawing default serializedproperty unity 
Csharp :: You can get events when an object is visible within a certain camera, and when it enters or leaves, using these functions: 
Csharp :: c# trimend substring 
Csharp :: how to stream video from vlc in c# 
Csharp :: cursor position c# 
Csharp :: how to use open hardware monitor in c# 
Csharp :: tilemap shader 
Csharp :: net user add ne user windows 10 
Csharp :: modal barrier in flutter 
Csharp :: unity script template folder 
Csharp :: Save variable unity 
Csharp :: c# how to make object rotate forever 
Csharp :: c# datagridview change column alignment 
Csharp :: c# new object 
Csharp :: change object position 
Csharp :: how to set the server url in dotnet core 
Csharp :: c# object add property 
Csharp :: how to call a method from a class c# 
Csharp :: inheritance 
Csharp :: logical operators in c# 
Csharp :: IOException: Failed to prepare target build directory. Is a built game instance running? UnityEditor.WindowsStandalone.WindowsDesktopStandalonePostProcessor.DeleteDestination (UnityEditor.Modules.BuildPostProcessArgs args) 
Csharp :: hive survive 
Csharp :: c# nunit assert.contains 
Csharp :: c# iterate xml 
Csharp :: ASP.NET C# Catch all exceptions in a class 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =