Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity 3d camera rotate up and down

public class CamRot : MonoBehaviour
{
    public float rotationSpeed = 50;

    void Update()
    {
        Vector3 rotation = transform.eulerAngles;

        rotation.x -= Input.GetAxis("Mouse Y") * rotationSpeed * Time.deltaTime;

        transform.eulerAngles = rotation;
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: Animator.GotoState: State could not be found UnityEngine.Animator:Play (string) 
Csharp :: urlreferrer in asp.net core 
Csharp :: wann war der dritte weltkrieg 
Csharp :: c# foreach enum 
Csharp :: unity move left and right 
Csharp :: dotnet build to exe 
Csharp :: how to convert string to bool c# 
Csharp :: C# string format sepperate every thousand 
Csharp :: unity color set alpha 
Csharp :: decode base64 string c# 
Csharp :: exit application wpf 
Csharp :: how to change the title of the console in c# 
Csharp :: c# string to sha256 
Csharp :: wait in unity 
Csharp :: c# randomize a list 
Csharp :: c# console create window 
Csharp :: how to make c# program run cmd commands 
Csharp :: unity disable parent gameobject 
Csharp :: unity know when gameobject presed 
Csharp :: There is already a virtual axis named Horizontal registered. unity 
Csharp :: unity how to summon an object with code 
Csharp :: wpf set image source in code behind 
Csharp :: Set value into lookup field in console app using dynamic CRM 365 
Csharp :: stock span problem c# 
Csharp :: unity get velocity of gameobject 
Csharp :: InvalidOperationException: Calling Scene Raisefrom assembly reloading callbacks are not supported. 
Csharp :: how to set progress openedge driver name for odbc connection c# 
Csharp :: how to get element dictionary key in c# by index 
Csharp :: c# serialize to xml 
Csharp :: how to check file path is valid in c# 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =