In 3 simple steps, deploy presence detection in Unity

The exercise here demonstrates using the trigger method to alert a game object about detection.

  1. Create an 3d child game object on the game object that shall have the detection mechanism. Disable the mesh renderer on it and enable the IsTrigger option.

2. Add the rigidbody component on this game object and disable gravity on it.


3. Add a script on this object with the trigger method. Choose the action as per preference.


That should be it :)

Here is the final result.

Thank you very much




Work in Progress.

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

Recommended from Medium

Searching with hyphens in Library Search

Developer Spotlight: May

Redpoint Founders Series: Ian Tien, Mattermost

Installing Flutter on a Mac, and running your first Flutter app

How You Can Leverage ScandiPWA & Why You Should

The importance of finishing work

Why you should reinvent the wheel periodically if you’re an experienced programmer.

CS373 Spring 2022: Sumedh Chilak — Week 3

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
Samarth Dhroov

Samarth Dhroov

Work in Progress.

More from Medium

Using Decals in Unity

Learn to code by making a 2D space shooter game.

Unity Interface Layout

Adding a Main Menu to our UI