Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if UNITY_EDITOR
- // Update is called once per frame
- void Update()
- {
- if((Application.isEditor || !runInEditorOnly) && !UnityEngine.XR.XRSettings.enabled)
- {
- CameraObject.localEulerAngles = new Vector3(Input.mousePosition.y.Remap(0, Screen.height, rotationMargin, -rotationMargin),
- Input.mousePosition.x.Remap(0, Screen.width, -rotationMargin, rotationMargin),
- 0);
- }
- }
- #endif
Add Comment
Please, Sign In to add comment