Skip to content

songyang-dev/input-rebinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Input Rebinder

A Unity plugin that helps you iterate on your game control UIs faster.

Currently, supporting Unity version 2022 LTS.

Getting Started

  1. Import the plugin from the Unity Asset store into your project.

  2. Go to "Tools" > "Input Rebinder". This will open the editor plugin's window.

Navigation bar

  1. On the opened editor window, select your .inputactions file. This is a file that Unity generates when you use the Input System. To select, click the rounded symbol with a dot inside.

Empty window

Select input actions

  1. In Generated Prefab Folder, select where you want the prefab to be generated in your project. By default, it is "Assets/Prefabs" and it will create the folders if they don't exist.

  2. In Generated Prefab Name, write the name of the prefab that will be generated by the Input Rebinder plugin. By default, the name is "Input Rebinder Controls".

  3. Click Analyze.

Analysis

  1. Pick which actions and action maps you want the plugin to generate. Usually, the UI action map is deselected because you don't want players to change the in-game UI's event system.

Deselect UI

  1. Click Generate. A prefab variant is generated at your desired location. A prefab variant is an instance of another prefab that is instantiable by itself. You may detach the prefab variant after you have finished using the plugin.

Generated prefab location

  1. Place the generated prefab into a scene. Click 2D in the editor to see in-game UI instead of the 3D world.

Deployed prefab

  1. To integrate it into your game, there are many ways and it depends on you. For example, you may disable the prefab and write a script that enables the generated prefab when a game event occurs. Or you may place the generated prefab alone in a scene that is switched into.

By default, the Close button on the prefab disables the root of the prefab. You can modify its behavior by changing its attached listener in the inspector.

About

A Unity plugin for the input system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published