Security Camera’s Animation

Create a reverse play animation loop

In this article we will be animating our security camera’s.

Window > Animation > Select Camera Gameobject > Animation (panel) > Create

Using the record function we made de camera rotate from about Y:45 to Y:-45 over 1 second.

Copy and Paste the Camera Animation
Create back and forth transitions

On the duplicated animation in the Inspector set the Speed to -1

Adjust the animation sample size so it doesn’t move that fast

Finally copy the animator component to the other security camera too.

Security Camera Detect Player

Using the same logic as we’ve done previously we can trigger the game over cutscene when the player walks into the camera’s vision.

--

--

--

Aspiring developer that’s self-learning Unity & C# to transition to a career with Unity. I got a passion for creating interactive experiences.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Hive Metastore

Visualization and Alerting to Slack Channel using Grafana

My GO-SQUADS 3.0 Stories — Part 1: Being a Pragmatic Programmer

5 To-Do’s That Can Help you Become a Great Developer

Building Devops / Secops Dashboards with Sigma Computing and Snowflake

Importing a VM as an Image using VM import/Export (Part 3)

Configuring Intel NUC with Ubuntu

Load Testing For Cloud Migration

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tristan Engel

Tristan Engel

Aspiring developer that’s self-learning Unity & C# to transition to a career with Unity. I got a passion for creating interactive experiences.

More from Medium

3D Stealth Game playable

2.5D Certification: Collectable

Get Started Your First Mobile Top Down Shooting Game Development With Unity Visual Scripting Part 5

Developing A Game Engine with Perl : Part 4 — UEFI vs OpenSuSE Installer