Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity mouse wheel

Input.mouseScrollDelta.y //Return 1 when up and -1 when down and 0 when the mouse scroll is not rotated
Comment

unity mouse wheel


float z = zoom.ReadValue<float>();
if (z > 0)
    Debug.Log("Scroll UP");
else if (z < 0)
    Debug.Log("Scroll DOWN");

Comment

PREVIOUS NEXT
Code Example
Csharp :: find unity 
Csharp :: C# list to string one line 
Csharp :: compute months c# 
Csharp :: unity smooth camera 2d 
Csharp :: c# string to datetime 
Csharp :: Convert Newtonsoft.Json.Linq.JArray to type System.Collections.Generic 
Csharp :: how to draw text in monogame 
Csharp :: unity time.deltatime timescale 0 
Csharp :: how to change rotate with script unity 
Csharp :: how to create a rounded custom panel c# 
Csharp :: this site can’t be reachedlocalhost unexpectedly closed the connection. .net framework 
Csharp :: on collision 2d unity 
Csharp :: c# copy list without reference 
Csharp :: c# create datatable 
Csharp :: dyncmics 365 setstate request 
Csharp :: unity keep rotating object 
Csharp :: how to copy a file in c# 
Csharp :: InvalidOperationException: Calling Scene Raisefrom assembly reloading callbacks are not supported. 
Csharp :: c# open file in default program 
Csharp :: c# convert int to pretty string 
Csharp :: unity how to reorder a list 
Csharp :: base64 string to byte array c# 
Csharp :: c# get files of type in directory 
Csharp :: meta keywords tag mvc .net core 
Csharp :: get rigidbody component unity 
Csharp :: unity3d random 
Csharp :: c# read char 
Csharp :: c# calculate difference between two dates in days 
Csharp :: how to make teleporter in unity 
Csharp :: c# thread sleep vs task delay 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =