Triggering Playback on Proximity

lightonoff2.cs

Size: 1.27 KB

You need to login to download this file.

  1. Start by creating a playermodel with
    1. The "Player" tag
    2. An Rigidbody
    3. An Collider
  2. Create a object you want to interact with
  3. Give this object an
    1. Collider with the "Is Trigger" mark checked
    2. Make the collider bigger to make a zone 
  4. Add the lightonoff.cs script onto the object
  5. Create a canvas with a text field
  6. Insert the text you want to display when getting into the zone

recommended