11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
输入管理
1/6
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.
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2020.3.1f1
兼容
兼容
兼容
描述

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.ButtonReleased


  • Value Action Type

ㅤㅤㅤㅤfloat AxisInputData.Axis

ㅤㅤㅤㅤVector2 Vector2InputData.Vector2

ㅤㅤㅤㅤVector3 Vector3InputData.Vector3



A 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.com

技术细节

This 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 Asset
  • Generate Input Data Window, a Custom Editor Window that takes a list of Input Actions and generates Input Data from it.

New Input By Reference

(暂无评分)
8 users have favourite this asset
(8)
$4.99
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
1.0 MB
最新版本
1.3.1
最新发布日期
2022年8月11日
原始 Unity 版本
2020.3.1
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR
$4.99