<aside> ⚠️ The framework supports the new Input System out of the box (tested with version 1.4.2). Please follow the instructions below only in the case you’re planning to use the old Unity’s built-in input.

</aside>

In order to get the project working with the old Unity’s built-in input, some actions need to be added to the Input Manager from the project settings, which can be accessed from Edit/Project Settings/Input Manager

The actions are needed to get the basic framework functionality working. Some of these actions might come already setup by default with the default project. Please leave the properties with the default value where they are not specified.

Keyboard input

| Horizontal | Positive Button: right
Negative Button: left Alt Negative Button: a Alt Positive Button: d | Key or Mouse Button | | --- | --- | --- | | Vertical | Positive Button: up Negative Button: down Alt Negative Button:s Alt Positive Button: w | Key or Mouse Button | | Fire1 | Positive Button: mouse 0 | Key or Mouse Button | | Aiming | Positive Button: mouse 1 | Key or Mouse Button | | Combine | Positive Button: c | Key or Mouse Button | | Inventory | Positive Button: i | Key or Mouse Button | | Submit | Positive Button: e | Key or Mouse Button | | Cancel | Positive Button: escape | Key or Mouse Button | | Interact | Positive Button: e | Key or Mouse Button | | Reload | Positive Button: r | Key or Mouse Button | | Run | Positive Button: left shift | Key or Mouse Button | | Turn 180 | Positive Button: q | Key or Mouse Button |

Gamepad input

| Horizontal | Axis: X axis Gravity: 0 Dead: 0.19 Sensitivity: 1 | Joystick Axis | | --- | --- | --- | | Vertical | Axis: Y axis Gravity: 0 Dead: 0.19 Sensitivity: 1 | Joystick Axis | | Fire1 | Positive Button: joystick button 0 | Key or Mouse Button | | Aiming | Positive Button: joystick button 5 | Key or Mouse Button | | Combine | Positive Button: joystick button 2 | Key or Mouse Button | | Inventory | Positive Button: joystick button 3 | Key or Mouse Button | | Submit | Positive Button: joystick button 0 | Key or Mouse Button | | Cancel | Positive Button: joystick button 1 | Key or Mouse Button | | Interact | Positive Button: joystick button 0 | Key or Mouse Button | | Reload | Positive Button: joystick button 2 | Key or Mouse Button | | Run | Positive Button: joystick button 2 | Key or Mouse Button | | Turn 180 | Axis: 10th axis | Joystick Axis |

This layout has been tested with a Xbox 360 gamepad controller on Windows 10. Please check this chart for the equivalent buttons on macOS.

Once the input has been properly setup on the project settings, a component has to be setup on the Character prefab, located in the Prefabs folder. Add the component PlayerInputListenerOld as follows and make sure the components PlayerInputListener and PlayerInput are removed.

Untitled

Finally, the UI prefab also has to be modified, which is equally located inside the Prefab folder. Add the component UIInputOld as follows and make sure the component UIInputNew gets removed if it was added to the object. Set the parameter names to the actions defined in the Project Settings/Input Manager

https://lh4.googleusercontent.com/Aw1tQVWcO-O7GxUzJ5YB1K40uvJgFPI3vzLZCZ_-NLbE9ixzqLvcgXe1PIC8SG99cgEQJyPzBqKWxH1I10JL2Nx-K-vBQsUeM6sYlDHQ74mS9zcBzNLQ3ldR68A2p3_2exLsbEf3naBhyaJHYTWLxHNRFTVIyd0_-teEch5mgCshh047-zXm3vwLkg