How To Add Planks

Door Setup with Planks

circle-info
  1. Start by adding Wooden Planks models over your door (As above)

  2. Click on your door and find the DoorInteractable script -

    1. Find the Plank settings and enable this by checking ShowPlankSettings

    2. Set the Plank Count to anything higher than 0 to have this active

    3. Set the DoorPlankedText - Add the text that you want to display when clicking on the door as a notification prompt

Individual Plank Setup

circle-info
  1. Make sure the plank GameObject has these settings:

    1. Box Collider

    2. InteractablePrompt script (Optional Component)

  2. Plank Interactable script:

    1. RemovePlankSound: Add a remove plank sound

    2. OnPlankRemove Event: This should be attached to your door object that has the plank settings. Press the + icon to add the event, drag your door into this slot and find the DoorInteractable script and attach the RemovePlank() method.

Plank Example Setup

Last updated