New Input By Reference
The BlindEye
$4.99
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
02/11(2022) |
4.99 |
11/18(2024) |
4.99 |
Jump AssetStore
A small package that facilitates development by integrating Unity's new Input System with the old Input Manager syntax and allowing you to alter the controls in Inspector whenever you wish.This package's demo version is available here.NEW! It is now possible to rebind actions and get their Sprites thru script (multiple Input Action Assets support).To save/load the rebinds, Unity's new Input System version 1.1.1 or higher Is required.Support for Input System 1.4.1 has been implemented, but it's not recommended to update since there is a bug that affects WASD keys!All of the functions listed below are included in this package and can be used under the NewInputByReference namespace.Action Mapㅤㅤㅤㅤvoid NewInput.SwitchActionMap(string actionMap)ㅤㅤㅤㅤvoid NewInput.EnableActionMap(string actionMap)ㅤㅤㅤㅤvoid NewInput.DisableActionMap(string actionMap)Rebind Functionsㅤㅤㅤㅤvoid NewInput.StartRebinding(InputData inputData,ㅤㅤㅤㅤint bindingIndex = 0,ㅤㅤㅤㅤbool allCompositeBindings = false,ㅤㅤㅤㅤAction onComplete = null,ㅤㅤㅤㅤInputData cancelInputData = null,ㅤㅤㅤㅤInputData[] excludedInputData = null)ㅤㅤㅤㅤvoid NewInput.Rebind(InputData inputData, string bindingPath,ㅤㅤㅤㅤint bindingIndex = 0)ㅤㅤㅤㅤvoid NewInput.Rebind(string actionName, string bindingPath,ㅤㅤㅤㅤint bindingIndex = 0)ㅤㅤㅤㅤstring NewInput.GetBindingName(InputData inputData,ㅤㅤㅤㅤint bindingIndex = 0,ㅤㅤㅤㅤbool allCompositeBindings = false,ㅤㅤㅤㅤNameOptions nameOption = NameOptions.OmitDevice)ㅤㅤㅤㅤstring NewInput.GetBindingName(string actionName,ㅤㅤㅤㅤint bindingIndex = 0,ㅤㅤㅤㅤbool allCompositeBindings = false,ㅤㅤㅤㅤNameOptions nameOption = NameOptions.OmitDevice)ㅤㅤㅤㅤSprite GetBindingSprite(InputData inputData, int bindingIndex = 0)ㅤㅤㅤㅤSprite GetBindingSprite(string actionName, int bindingIndex = 0)ㅤㅤㅤㅤvoid NewInput.ResetRebinds()ㅤㅤㅤㅤvoid NewInput.ResetRebind(InputData inputData,ㅤㅤㅤㅤint bindingIndex = 0)ㅤㅤㅤㅤvoid NewInput.ResetRebind(string actionName,ㅤㅤㅤㅤint bindingIndex = 0)Button Action Typeㅤㅤㅤㅤbool NewInput.GetButtonDown(string actionName)ㅤㅤㅤㅤbool NewInput.GetButtonDown(InputData inputData)ㅤㅤㅤㅤbool NewInput.GetButton(string actionName)ㅤㅤㅤㅤbool NewInput.GetButton(InputData inputData)ㅤㅤㅤㅤbool NewInput.GetButtonUp(string actionName)ㅤㅤㅤㅤbool NewInput.GetButtonUp(InputData inputData)Value Action Typeㅤㅤㅤㅤfloat NewInput.GetAxis(string actionName)ㅤㅤㅤㅤfloat NewInput.GetAxis(InputData inputData)ㅤㅤㅤㅤVector2 NewInput.GetVector2(string actionName)ㅤㅤㅤㅤVector2 NewInput.GetVector2(InputData inputData)ㅤㅤㅤㅤVector3 NewInput.GetVector3(string actionName)ㅤㅤㅤㅤVector3 NewInput.GetVector3(InputData inputData)There are also shortcuts for the functions when using Input Data references.Button Action Typeㅤㅤㅤㅤbool ButtonInputData.ButtonPressedㅤㅤㅤㅤbool ButtonInputData.ButtonHoldingㅤㅤㅤㅤbool ButtonInputData.ButtonReleasedValue Action Typeㅤㅤㅤㅤfloat AxisInputData.AxisㅤㅤㅤㅤVector2 Vector2InputData.Vector2ㅤㅤㅤㅤVector3 Vector3InputData.Vector3A full walkthrough of the Package can be found in the Documentation.Contents of the Documentation:ㅤㅤㅤㅤ1. What is included with the Package?ㅤㅤㅤㅤ2. What are the Functions?ㅤㅤㅤㅤ3. How to set up a Project to use the Package?ㅤㅤㅤㅤ4. What do custom errors indicate?ㅤㅤㅤㅤ5. What are some script examples?ㅤㅤㅤㅤ6. What are some tips?ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤSupport | Discord | Mail: blindeyethe@gmail.comThis package contains:Demo Input Action Asset, an Input Action Asset that contains a collection of Input Actions that can be extended upon.Demo Action Map, which was generated from the Demo Input Action Asset.Demo Input Handler, a Prefab that's already configured to function with the Demo Input Action AssetGenerate Input Data Window, a Custom Editor Window that takes a list of Input Actions and generates Input Data from it.