Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity left mouse button

// ============== Primary Mouse Button (Left Click) ========================
// It is true aslong the user holds the left mouse button
// Like shooting with an Automatic Gun - AK 47 :P
Input.GetKey(KeyCode.Mouse0)

// It only triggers 1 time when you click
// Like shooting a semi automatic pistol - Desert Eagle ;)
Input.GetButtonDown("Fire1")
 
PREVIOUS NEXT
Tagged: #unity #left #mouse #button
ADD COMMENT
Topic
Name
2+7 =