In 3 simple steps, deploy presence detection in Unity

Samarth Dhroov
Oct 18, 2021

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.
Unity
Unity

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

Unity

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

Unity

That should be it :)

Here is the final result.

Thank you very much

--

--