Easy New Input System

$19
Publisher Axios Interactive Interactive LLC
File size 116.66kB
Number of files 26
Latest version 1.3.2
Latest release date 2024-05-30 01:28:53
First release date 2020-11-19 11:47:13
Supported Unity versions 2018.4.2 or higher

Unity's new Input System 1.0.0 is required for this asset to work, it can be acquired via the Package Manager.



A wrapper for Unity's new Input System that allows you to utilize old Input Manager syntax.



If you found the new Input System to be somewhat difficult to jump into this asset is for you.



The Easy New Input System provides:


bool Input.GetButtonDown(string actionName)


bool Input.GetButtonUp(string actionName)


bool Input.GetButton(string actionName)


float Input.GetAxis(string actionName)


float Input.GetAxisRaw(string actionName)



With the addition of a few new methods because of the incredibly expanded options from the Unity's new Input System:


Vector2 Input.GetVector2(string actionName)


Vector2 Input.GetVector2Raw(string actionName)


Vector3 Input.GetVector3(string actionName)


Vector3 Input.GetVector3Raw(string actionName)


This asset makes it super simple to upgrade a project using Unity's old Input Manager or start a new project using the new Input System a cinch. You can even add this package to a game that is already using the new Input System and clean up your scripts a lot as a result.



After installing the new Input System from the package manager and importing this asset:



- To upgrade an old project you just need to create or modify the Input Action Asset to include all of the controls you have configured in the old Input Manager, open the settings under Edit > Input Wrapper Settings and choose the Input Action Asset. Then you shouldn't need to make any changes to your code.


- To start a new project you just need to create a new Input Action Asset or modify the Input Action Asset included with the project to have the relevant controls. Ensure that the Input Action Asset is selected in the Input Wrapper Settings menu and write your code the same way you always have with the old Input Manager. No new imports anything else required.


- For projects that already have the new Input System in use, you can bring this asset into the project and then you can remove most, if not all, context callback methods in your code as well as any booleans related to keeping track of what button was pressed when, as well as any state resets in your Update or FixedUpdate methods. With this asset it's simple, just poll for when a button is pressed using the above methods.


​Discord for support inquiries: https://discord.gg/pVGHvtcEtW​

Top Publisher Assets