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
Share
Go down
avatar
Moderator
Moderator
Posts : 76
Points : 1926
Rep : 16
Join date : 2014-06-02
Age : 15
Location : Milky Way
View user profile

Wooden_sword789's Zoom Script!!!

on Sat Aug 16, 2014 9:51 am
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.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum