🔏
APK - Doc - V1.5
  • Adventure Kit - V1.5
  • ⭐Getting Started
    • Main Setup
    • Managers Setup
      • Step 1 - Canvas Container
      • Step 2 - FPSController
      • Step 2.5 - Audio Manager
        • Audio Reference List
      • Step 3 - UI Manager
      • Step 4 - Input Manager
      • Step 5 - Disable Manager
    • Puzzles Setup
      • Chess Puzzle Sys - Setup
      • Letter & Note Sys - Setup
      • Lever Puzzle Sys - Setup
      • Themed Key Sys - Setup
      • Gas Mask Sys - Setup
      • Flashlight Sys - Setup
      • Generator Sys - Setup
      • Fuse Box Sys - Setup
      • Examine Sys - Setup
      • Padlock Sys - Setup
      • Keypad Sys - Setup
      • Phone Sys - Setup
      • Safe Sys - Setup
    • Interaction Options
  • URP / HDRP SETUP
    • URP/HDRP Setup
  • ❓Support
    • FAQ
    • System Namespace
    • Adding a Trigger Event
    • Using a different character controller
  • 🌀Development
    • Patch Notes - V1.5
    • Legacy Videos
  • 📧Contact Me
    • Request a feature
    • Contact Me
    • My Other Assets
Powered by GitBook
On this page
  • Add the Input Manager
  • Referencing the Input Manager
  • Basic Input Manager Setup

Was this helpful?

  1. Getting Started
  2. Managers Setup

Step 4 - Input Manager

Add the Input Manager

Add the "AK_InputManager" from the prefabs folder or the "Adventure_Kit_Managers" pack to add all to the hierarchy. You can add the "AK_InputManager" script to an empty gameobject if you want to start fresh

Referencing the Input Manager

//Add this namespace to the top of the script to reference the adventure kit
using AdventurePuzzleKit;
//All the default key inputs you can use, more can be added for your own purposes!
public KeyCode pickupKey;
public KeyCode openInventoryKey;
public KeyCode padlockCloseKey;
public KeyCode triggerInteractKey;
public KeyCode equipMaskKey;
public KeyCode replaceFilterKey;
public KeyCode closeNoteKey;
public KeyCode reverseNoteKey;
public KeyCode interactKey;
public KeyCode rotateKey;
public KeyCode dropKey;
public KeyCode flashlightSwitch;
public KeyCode reloadBattery;
//As an example, see below - You can use instance.KeyName based on the list above
AKInputManager.instance.equipMaskKey

Basic Input Manager Setup

Set the inputs for each of the key types by selecting the dropdown box and choosing the appropriate key type for your usage!

PreviousStep 3 - UI ManagerNextStep 5 - Disable Manager

Last updated 4 years ago

Was this helpful?

⭐