Training Center

Triggered Cameras In Unity

Triggered Cameras In Unity

Add an interactive security station to your game! Learn how to use triggers, cameras, GUI Buttons, and first-person controller tools to make a fully functional closed circuit surveillance system. Great for first-person puzzles or cinematic sequences.

Get a look at the security camera system, integrated into the Bootcamp demo level, in action.

Additional Info

  • Runtime 01 min 41 sec
  • Software Unity
Login to download project files

Set up the Bootcamp level with custom models that you'll use to build your camera system. You'll be importing and placing FBX models in this chapter.

Additional Info

  • Runtime 09 min 13 sec
  • Software Unity

Set up a trigger that switches the main camera view to your control station's multi-camera view. This requires a trigger collider and modification of the currently active cameras and their viewports.

Additional Info

  • Runtime 11 min 49 sec
  • Software Unity

Use enumerations and a switch statement to create and track the different camera layouts. Then switch camera layouts with mouse inputs.

Additional Info

  • Runtime 11 min 13 sec
  • Software Unity

Draw buttons on the screen that switch layouts from the multi-screen view to a fullscreen of each camera, and then switch them back again. This uses simple GUI.Buttons to change the variable tracking camera layouts.

Additional Info

  • Runtime 13 min 21 sec
  • Software Unity

Create a functionality that will hide the cursor during normal gameplay and reveal it while controlling cameras.

Additional Info

  • Runtime 03 min 16 sec
  • Software Unity

Write a script to set your cameras rotating on their own. Control speed, maximum angles of rotation, and then randomize their position. Learn to tie transform.eulerAngles to a sin wave over time to achieve a smooth rotation effect.

Additional Info

  • Runtime 09 min 31 sec
  • Software Unity

Add image effects to your cameras to match the game view and simulate a small camera lens. We use light and focus vignetting, chromatic aberration, and monochromatic noise to achieve this. IMPORTANT NOTE: Image Effects are a Unity Pro feature and are not usable in the free version of Unity.

Additional Info

  • Runtime 07 min 09 sec
  • Software Unity

We'll take our switch statement and reduce many of its cases to a few lines of code in a 'for loop'. This leverages the use of arrays earlier in the project.

Additional Info

  • Runtime 05 min 08 sec
  • Software Unity

We'll give the player the ability to zoom a camera in and out when it occupies the full screen. We'll restrict the max and min zoom levels, and tie in a GUI.Label to simulate a camera focal length readout.

Additional Info

  • Runtime 13 min 00 sec
  • Software Unity

We finish up by adding a servo sound effect to play whenever the camera is zoomed. This ties in an audio source component to the Input.GetKeyDown function.

Additional Info

  • Runtime 07 min 34 sec
  • Software Unity

Chapter List

Questions? ¿Preguntas? 有问题吗? Domande? Вопросы? 質問はありますか? सवाल? الأسئلة؟
This email address is being protected from spambots. You need JavaScript enabled to view it.

About design3

design3 is THE game production web portal. Whether you’re an industry veteran keeping up with new tools and trends or an aspiring developer searching for professional training, expert advice and career tips – design3.com is where you need to be.

Sign-up for our newsletter!

:

Copyright © 2006 - 2012 design3. All rights reserved.

Sign In or Become a member

Facebook user?

You can use your Facebook account to sign into our site.

Log in with Facebook

LOG IN