Adding Trigger Event

Creating A Trigger Event

  1. Create a box or other 3D Object to act as your trigger - make sure this object has a collider set to IsTrigger

  2. Add the PadlockTrigger script to that 3D object and add the padlock controller object to the inspector slot named PadlockController

    1. By default the interaction key is set to E

  1. In the PadlockController script make sure to:

    1. Tick IsPadlockTrigger

    2. Add the Padlock Trigger GameObject to the TriggerObject slot

Last updated

Was this helpful?