Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to use the mouse scroll wheel to move the camera in unity

float scroll = Input.GetAxis ("Mouse ScrollWheel");
    transform.LookAt (target);
    transform.Translate(0, 0, scroll * speed, Space.Self);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# foreach on a dictionary 
Csharp :: c# list slice 
Csharp :: .net mvc decimal displayformat currency 
Csharp :: how to add to a list c# 
Csharp :: read all lines from txt c# 
Csharp :: how to check if file contains image c# 
Csharp :: c# lambda join two tables 
Csharp :: c# consuming post rest service 
Csharp :: c# get char from string 
Csharp :: switch case in c# with multiple values 
Csharp :: unity cast int to float 
Csharp :: c# dictionary add 
Csharp :: get value from config file c# 
Csharp :: c# add multiple items to list 
Csharp :: how to convert date to Complete ISO-8601 date in c# 
Csharp :: convert string to number c# 
Csharp :: how can prevent the empty input in jquery 
Csharp :: c# best tutorial 
Csharp :: join two array c# 
Csharp :: unit test c# exception thrown 
Csharp :: generate qr code c# 
Csharp :: Convert DataTable to Dictionary in C# 
Csharp :: how to set picturebox width with form width in c# 
Csharp :: how to disable vsync in monogame 
Csharp :: nunjucks index in loop 
Csharp :: c# add button to messagebox 
Csharp :: How to make game object transparent in unity 
Csharp :: array sort C Sharp 
Csharp :: how get data from json in c# 
Csharp :: power of number 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =