unity 3d mouse look script
C#
public float lookSpeed = 3;
private Vector2 rotation = Vector2.zero;
public void Look() // Look rotation (UP down is Camera) (Left right is Transform rotation)
{
rotation.y += Input.GetAxis("Mouse X");
rotation.x += -Input.GetAxis("Mouse Y");
Camera.main.transform.localRotation = Quaternion.Euler(rotation.x * lookSpeed, rotation.y * lookSpeed, 0);
}
Also in C#:
- Title
- invalidoperationexception c# ui thread
- Category
- C#
- Title
- c# string to byte array
- Category
- C#
- Title
- or in unity
- Category
- C#
- Title
- unity onselect gizmos wireframe
- Category
- C#
- Title
- max of array C#
- Category
- C#
- Title
- c# sort for loop
- Category
- C#
- Title
- c# reverse string
- Category
- C#
- Title
- how to stream video from vlc in c#
- Category
- C#
- Title
- unity round
- Category
- C#
- Title
- c# silent execute exe
- Category
- C#
- Title
- How to execute script in C#
- Category
- C#
- Title
- get type of variable c#
- Category
- C#
- Title
- convert string to double c#
- Category
- C#
- Title
- wpf binding ancestor codebehind
- Category
- C#
- Title
- how to make a float in C++
- Category
- C#
- Title
- c# map
- Category
- C#
- Title
- entity framework core
- Category
- C#
- Title
- c# bitmap to Image
- Category
- C#
- Title
- Read csv file into wpf C#
- Category
- C#
- Title
- c# Sleep
- Category
- C#
- Title
- c# use hashtable check if key exists
- Category
- C#
- Title
- query associative table ef6
- Category
- C#
- Title
- list of vectors c#
- Category
- C#
- Title
- MVC creating a counter for products
- Category
- C#
- Title
- polling data source c# using threads
- Category
- C#
- Title
- unity scene name get
- Category
- C#
- Title
- c# groupby date
- Category
- C#
- Title
- reverse a string in c#
- Category
- C#
- Title
- font family behind code uwp c#
- Category
- C#
- Title
- c# compile into an exe
- Category
- C#
- Title
- how to change an int value c#
- Category
- C#
- Title
- c# datetime dd/mm/yyy hh:mm:ss
- Category
- C#
- Title
- c# listview
- Category
- C#
- Title
- c# sql duplicate key exception
- Category
- C#
- Title
- .net core check if linux
- Category
- C#
- Title
- c# how to run external program
- Category
- C#
- Title
- attribute usage c#
- Category
- C#
- Title
- c# warning CS0108
- Category
- C#
- Title
- c# filter non alphanumeric characters
- Category
- C#
- Title
- c# variable
- Category
- C#
- Title
- .net core authorizationhandlercontext
- Category
- C#
- Title
- unity enum
- Category
- C#
- Title
- c# how to have a multiline console.writeline
- Category
- C#
- Title
- gaussian blur unity sprite 2D
- Category
- C#
- Title
- unity how to make jump script
- Category
- C#
- Title
- how to start grid from where the data starts in c# charts
- Category
- C#
- Title
- Basic fps camera C#
- Category
- C#
- Title
- c# lambda expression
- Category
- C#
- Title
- linq c# where condition
- Category
- C#
- Title
- unity array c#
- Category
- C#
- Title
- c# change material in code
- Category
- C#
- Title
- initialise icollection c#
- Category
- C#
- Title
- transform.translate unity
- Category
- C#
- Title
- unity inspector header attribute
- Category
- C#
- Title
- how to change text to bold through script unity
- Category
- C#
- Title
- c# bitmap to picturebox
- Category
- C#
- Title
- declare string array c# without size
- Category
- C#
- Title
- how to set a transform equal to something unity
- Category
- C#
- Title
- how to convert float to int c#
- Category
- C#
- Title
- c# method info extension
- Category
- C#
- Title
- iformfile blobclient
- Category
- C#
- Title
- foreach c#
- Category
- C#
- Title
- how to create a list c#
- Category
- C#
- Title
- Microsoft.AspNetCore.Components.Forms.InputSelect`1.TryParseValueFromString(String value, TValue& result, String& validationErrorMessage)
- Category
- C#
- Title
- unity fps counter
- Category
- C#
- Title
- c sharp comments
- Category
- C#
- Title
- The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
- Category
- C#
- Title
- unity print
- Category
- C#
- Title
- print content of array c#
- Category
- C#
- Title
- c# download file
- Category
- C#
- Title
- get and set for array c#
- Category
- C#
- Title
- c# stop loop
- Category
- C#
- Title
- c# inotifypropertychanged best practices
- Category
- C#
- Title
- c# implement ienumerable t
- Category
- C#
- Title
- array to list C
- Category
- C#
- Title
- unity docs player input
- Category
- C#
- Title
- parsing string to int without format exception c#
- Category
- C#
- Title
- leantween id
- Category
- C#
- Title
- modal dismiss
- Category
- C#
- Title
- button color uwp c#
- Category
- C#
- Title
- prefab gets character transform
- Category
- C#
- Title
- how to get odd saturday in a month in c#
- Category
- C#
- Title
- c# generate random number
- Category
- C#
- Title
- built in methods to order a list c#
- Category
- C#
- Title
- c# webcam
- Category
- C#
- Title
- c# ?
- Category
- C#
- Title
- how to use variables in c#
- Category
- C#
- Title
- sending data photon c#
- Category
- C#
- Title
- unity making homing rocket
- Category
- C#
- Title
- c# implement a superclass in subclass
- Category
- C#
- Title
- can send but cannot receive email dreamhost email
- Category
- C#
- Title
- c# aspx return image
- Category
- C#
- Title
- rotatearound unity
- Category
- C#
- Title
- c# timespan
- Category
- C#
- Title
- unity try get component
- Category
- C#
- Title
- check if network is available c#
- Category
- C#
- Title
- asp.net model display name
- Category
- C#
- Title
- automapper c# initialize error
- Category
- C#
- Title
- unity no serializefield
- Category
- C#
- Title
- unity get decimal part of float
- Category
- C#