-
Notifications
You must be signed in to change notification settings - Fork 85
Getting Started
daemon3000 edited this page Dec 31, 2014
·
12 revisions
- Download or clone the repository. The repository contains a Unity project with the plugin and some examples.
- Open the Unity project, in the Project Panel select the folder named InputManager, right-click on it and select Export Package.
- Open your game project in Unity and drag the package you just exported to the Project Panel to import it. If you are using a Unity version lower than 4.6, you shouldn't import the examples and the UIInputModules addon.
- If your scripts make any calls to the UnityEngine.Input class, you need to open the project in MonoDevelop or Visual Studio and replace all calls to UnityEngine.Input with calls to TeamUtility.IO.InputManager.
- Go to the Team Utility > Input Manager menu and select Create Input Manager.
- Go to the Team Utility > Input Manager menu and select Open Advanced Editor. The first time you open the Advanced Editor you will be prompted to overwrite your project's input settings. You can also do it from the File menu of the Advanced Editor at a later time.
- Use the options available in the Edit menu of the Advanced Editor to set up your input configurations.
It is recommended that you have only one Input Manager in your game. Add it in the first scene and enable Dont Destroy On Load in the inspector. You should also enable Ignore Timescale if you pause the game by setting the timescale to zero.
- In order to use the plugin with the new UI introduced in Unity 4.6 you need the UIInputModules addon.
- When you create a new UI canvas make sure you go to the Team Utility > Input Manager menu and select Fix Event System.