# Rewired

## Asset Location

{% hint style="info" %}

## :joystick: [**Rewired**](https://assetstore.unity.com/packages/tools/utilities/rewired-21676?aid=1100lHT6) &#x20;

{% endhint %}

<div align="center"><img src="https://lh4.googleusercontent.com/4OByMMOzZyt0pco0Au4pd-DQCfXUIR6Xl8HOgniXCcOVTSi8Cfq2veoWrDTwteXytgWBgSuTcXnTeTGpmNXa4Os4M6XCGKMXlAel7v2DogFTu4Z-cpWzN-E4FzN0qFEOZq0lrMUC" alt=""></div>

{% hint style="info" %}

### Remember to have both packages on your project installed correctly

{% endhint %}

## Integration Steps

1. Go to **Edit->Project Settings -> Player**

<div align="center"><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-LzimqJEg-ftO-vFrtCw%2F-LzivW8mgR44H77klFcb%2Fimage.png?alt=media&#x26;token=c8101a4f-17c1-4a0e-b5db-133e7bdfb00b" alt=""></div>

2\. Add **"REWIRED"** to the Scripting Define Symbol\*

<div align="center"><img src="https://lh4.googleusercontent.com/sIrVcRIjZ32J4cwRyG_xeOvC14qmjDjyII61ZMJodVqvWD-TyrZ-R43veKmjSwoBVeGLXrVy222PP8YFE_qNvSOhC4JRQAYrpP375DEDufJKtTX7fwbPPu1_xAZOAbdfBJMc08Ro" alt=""></div>

3\. Once done that a new **string** parameter will show up on every script that requires **Input**… such as:

[**MalbersInput**](https://malbersanimations.gitbook.io/animal-controller/main-components/malbers-input),  MFreeLookCamera, [**MInput**](https://malbersanimations.gitbook.io/animal-controller/main-components/malbers-input)

![](https://lh4.googleusercontent.com/_XFst2_6tmw_XXWNho6fazLvu3ds4zWz52bFndYXuJeYCwDpWGf02wFeoo_dEsMYQ1EnXXk23LvUQ4uEOkKmxK_qmgBGXRfDFTC0S-v_s7hIRNYNO8F4UHPXD8XP3x3GBMgEDdhy)

{% hint style="info" %}
This parameter is the **Player ID** for **Rewired.**
{% endhint %}

4\. Change all the types from "**KEY**" to "**INPUT**" on all the Inputs Parameters on every script to complete the connection.

![](https://lh3.googleusercontent.com/zaXyYe2CJfqdcDlZen__X4L_gv8TRNciq4CggLKiOiKuopUoIMPXOr3kUELg2YxFHMEpisZocflgA3uN-UjVYm22zGGSA1d1a2WMSzjp6eu2yx4A-xyOyRg8hBUPc0nCZvpmhthz)

5\.  Download from the [**Integration Drive Folder**](https://bit.ly/MalbersIntegrations) the Rewired Input Source to have a **base** Input Manager with all the mappings… (you can always change it with yours).

You can find the prefab on this location:

![](https://lh3.googleusercontent.com/JPjxs8q8BIAFt62U0tlrGivzfBH05yHm86fBADXJqGytcvq1F2hj9QZC3JfrvdAP1gMg49frUAZeziA0o3Vl6rAMkjGHmEQd4y2hxeMz-mhooxwCKZtA0Kc_dS30h7NJQClnobx8)

6\. Drop the **Prefab** to your scene … and that’s it.

**This prefab has the basic Actions already setted.. but you can always add/modify them.**

![](https://lh3.googleusercontent.com/74cqa404dLjPoNd-E9RlPoLEy8OnkfFUvMaI0UOLY9c25N2FXvIJDoFiMvyQSgFtceGMo9kFVjvkiqmN9MbHkxl2NTI3xNpWBtQCvpfREi4GyaqSNQ2iCaEYQ1rIXQTYOdKRgN5k)
