# Integration with Other Packages

Packages:

- Unity UI
- UFPS
- PlayMaker
- Behavior Designer
- Third Person Controller
- Motion Controller
- iRDS - Intelligent Race Driver System
- Racing Game Starter Kit
- GAC (Great Animation Combos) System
- Inventory Pro
- uFS - Flight Simulation Engine
- Realistic FPS Prefab
- Deftly: Top Down Shooter Framework
- Others

### Unity UI

Rewired can be used as the input source for Unity's UI system introduced in Unity 4.6. In order to use Rewired to control Unity's UI, you must replace the StandaloneInputModule component on the UI EventSystem object with the RewiredStandaloneInputModule. Please see Rewired Standalone Input Module for more information.

### UFPS

Rewired can be used to provide input for UFPS, a popular first person shooter kit by Opsive. Rewired comes pre-packaged with an integration kit that was designed to work with UFPS 1.4.9+.

To install the UFPS Integration Pack, do the following:

1. Ensure that you are running Unity 4.5 or greater.
2. Install Rewired and UFPS first. If UFPS is not installed, you will get errors when the integration pack is installed.
3. Run the following menu item in the Unity editor:
   Window -> Rewired -> Integration -> UFPS -> Install Integration Pack
4. Follow the on-screen prompts.
5. When installation is complete, you will need to create a Rewired UFPS Input Manager in your scene before Rewired will be able to handle input. You can do this from the menu:
   Window -> Rewired -> Integration -> UFPS -> Create UFPS Rewired Input Manager
6. The Rewired UFPS Input Manager contains default settings for all of UFPS's controls for the keyboard, mouse, and dual analog gamepads. If you want to customize the controls, simply click the "Rewired UFPS Input Manager" then edit the settings in the Rewired Editor.

To Uninstall:

1. Delete the Rewired/Integration/UFPS folder
2. Delete the Rewired UFPS Input Manager from the scene

Notes:

- UFPS's built-in input manager will no longer have any effect as long as the Rewired UFPS Input Manager exists in the scene. Additionally, some UFPS functions such as those designed to let you remap keys will no longer have any effect. You should manage key remapping using Rewired instead.
- The Rewired UFPS integration pack makes no changes to the UFPS source code. You are therefore free to update UFPS as you see fit without losing the integration with Rewired.
- If you install UFPS after installing Rewired, UFPS will overwrite the /ProjectSettings/InputManager.asset in your project. This will overwrite Unity input manager entries that Rewired needs to be able to get mouse input or to get joystick input on platforms that fall back on Unity input as the input source. If this happens, simply reinstall Rewired's Input Manager settings by running the installer from the menu Window -> Rewired -> Setup -> Run Installer and allow it to add the necessary entries in the InputManager.asset file.

FAQ:

The fire button (gamepad right trigger) and right stick look do not work unless I click the mouse button in the main window first. This happens in both the editor and game build. How do I fix this?

This issue is not with Rewired, but rather it is an intentional functionality of UFPS.

The Rewired integration only goes so far as to change the input sources for the Actions requested by the various UFPS scripts by replacing the underlying input manager. It doesn't alter the functionality or code of UFPS in any way so it cannot modify this behavior because the Action processing is blocked in the UFPS character script.

UFPS is in control of the mouse pointer control. It doesn't allow you to fire or move the right stick (mouse look) unless the mouse pointer is captured regardless of the platform. There is an inspector option on the UFPS character controller (VP_FPInput -> Mouse Cursor -> Blocks Mouselook) that changes the mouse capture behavior for the right stick, however this doesn't solve the issue with firing.

The only way to "fix" the issue with the fire button (right trigger) is to change UFPS source code. In VP_FPInput.cs, search for the function called InputAttack and find the two lines that read.

    if (!vp_Utility.LockCursor) // <-- Comment out this line
      return; // <-- Comment out this line

Note that I cannot provide support on how to use UFPS. This information was only added here because I receive support requests on this issue on a regular basis. If you have issues with UFPS, you should contact the developer, Opsive for support.

I get warnings in the console saying the Actions "LeftTrigger" and "RightTrigger" are missing the first time I press the gamepad triggers in every game session. How do I fix this?

This occurs because the developer of UFPS added LeftTrigger and RightTrigger Actions to UFPS recently when they added joystick support. They were not added to the default UFPS Rewired Input Manager because they were only added to UFPS as a way to convert analog gamepad trigger axis values to button values, but Rewired handles this already using the default Attack action. Adding the Actions would just add confusion since they would be unused and only added to silence those warnings. The warnings are harmless and only show up the first time you press the triggers. If you really want to get rid of the warnings, add two Actions called LeftTrigger and RightTrigger.

### PlayMaker

Rewired can be used with Hutong Games PlayMaker, a popular visual scripting tool for Unity.

To install the PlayMaker Integration Pack, do the following:

1. Install Rewired and PlayMaker first. If PlayMaker is not installed, you will get errors when the integration pack is installed.
2. Run the following menu item in the Unity editor:
   Window -> Rewired -> Integration -> PlayMaker -> Install Integration Pack
3. Follow the on-screen prompts.

To Uninstall:

1. Delete the Rewired/Integration/PlayMaker folder

### Behavior Designer

Rewired can be used with Opsive Behavior Designer, a popular visual scripting and behavior tree tool for Unity.

To install the Behavior Designer Integration Pack, do the following:

1. Install Rewired and Behavior Designer first. If Behavior Designer is not installed, you will get errors when the integration pack is installed.
2. Run the following menu item in the Unity editor:
   Window -> Rewired -> Integration -> Behavior Designer -> Install Integration Pack
3. Follow the on-screen prompts.

To Uninstall:

1. Delete the Rewired/Integration/BehaviorDesigner folder

### Third Person Controller

Rewired can be used with Opsive Third Person Controller, a popular third-person game kit. The integration pack can be downloaded from Opsive's site here.

Note: This integration is a 3rd party integration package and not maintained or supported by Guavaman Enterprises.

### Motion Controller

Motion Controller by ootii is an animation framework and character controller for any character and any game. You can download the intregration from ootii's Vault. (Search the page for Rewired.)

Note: This integration is a 3rd party integration package and not maintained or supported by Guavaman Enterprises.

### iRDS - Intelligent Race Driver System

iRDS - Intelligent Race Driver System by Jose Garrido is a racing game toolkit that helps you to develop Racing Games. Please see the iRDS documentation for details.

Note: This integration is a 3rd party integration package and not maintained or supported by Guavaman Enterprises.

### Racing Game Starter Kit

Racing Game Starter Kit by Intense Games is an easy to use asset for creating racing games. The integration is included in the package. Please see the Racing Game Starter Kit documentation for details.

Note: This integration is a 3rd party integration package and not maintained or supported by Guavaman Enterprises.

### GAC (Great Animation Combos) System

GAC (Great Animation Combos) System by Eric Turgott is an asset that allows you to implement combos for any action game. The integration is included in the package. Please see the GAC documentation for details.

Note: This integration is a 3rd party integration package and not maintained or supported by Guavaman Enterprises.

### Inventory Pro

Inventory Pro by Devdog is a highly flexible inventory system for Unity. Inventory Pro can be used for RPG, RTS, FPS, and other game types. The integration is included in the package. Please see the Inventory Pro documentation for details.

Note: This integration is a 3rd party integration package and not maintained or supported by Guavaman Enterprises.

### uFS - Flight Simulation Engine

uFS - Flight Simulation Engine by REMEX Software Ltd delivers previously unseen Flight Simulation accuracy to the Unity Asset Store.

Rewired includes an integration pack for uFS which can be installed from the menu:
Rewired -> Integration -> uFS -> Install Integration Pack

In addition to the integration pack, Unity Input Override must be installed.

Usage

Create a Rewired UnityFS Input Manager from the menu:
Rewired -> Integration -> uFS -> Create uFS Rewired Input Manager

This will set up default controls that will work with uFS.

To Uninstall

1. Delete the Rewired/Integration/UFS folder.
2. Optionally uninstall Unity Input Override.

### Realistic FPS Prefab

Realistic FPS Prefab by Azuline Studios is a first-person shooter complete project.

This forum post by longroadhwy shows how to do the integration by modifying a bit of source code.

Note: This integration is a 3rd party integration and not maintained or supported by Guavaman Enterprises.

### Deftly: Top Down Shooter Framework

Deftly: Top Down Shooter Framework by Cleverous aims to deliver flexibility and ease of use into a stable top down shooter environment with AAA quality.

The Rewired integration is included in the package. Please see the Deftly documentation for details.

Note: This integration is a 3rd party integration package and not maintained or supported by Guavaman Enterprises.

### Others

Most Unity Asset Store assets can be used with Rewired by using the Unity Input Override system. Please see Unity Input Override for details.

Documentation