Horje
unity 3d camera rotate up and down Code Example
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;
    }
}




Csharp

Related
string length c# Code Example string length c# Code Example
how to move a gameobject to another object Code Example how to move a gameobject to another object Code Example
how to make a partical system to destroy itself after it finishing Code Example how to make a partical system to destroy itself after it finishing Code Example
ensuresuccessstatuscode exception Code Example ensuresuccessstatuscode exception Code Example
distinct prime factors count of a number Code Example distinct prime factors count of a number Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7