Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » FREE Project Downloads & Recources » Scripts » Wooden_sword789's Zoom Script!!!

Wooden_sword789's Zoom Script!!!

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Wooden_sword789's Zoom Script!!! on Sat Aug 16, 2014 9:51 am

DeveloperLuke


Moderator
Moderator
var zoomindistance = 10.0;
var zoomoutdistance = 60.0;

function Update () {
if(Input.GetKeyDown(KeyCode.V)) {
camera.fieldOfView = zoomindistance;
}
if(Input.GetKeyUp(KeyCode.V)) {
camera.fieldOfView = zoomoutdistance;
}
}
//made by wooden_sword789.

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum