简体   繁体   English

使用 Unity 的新输入系统删除操作后的错误

[英]Errors after deleting an action using Unity's new input system

I'm using Unity's new input system.我正在使用 Unity 的新输入系统。 I recently deleted some actions, and now I'm getting the following error whenever I go into Play mode.我最近删除了一些操作,现在每当我进入播放模式时都会收到以下错误。 As stated here , the error doesn't break anything, but it's annoying to always see errors in my console.如此处所述,该错误不会破坏任何内容,但总是在我的控制台中看到错误很烦人。 Is there any way to refresh the input settings so that the actions I deleted are completely removed and this error goes away?有什么方法可以刷新输入设置,以便完全删除我删除的操作并且此错误消失?

Cannot find action 'Camera/New action1' with ID 'af026e96-883f-4172-ba96-2d8225a11f0f' in 
    'PlayerInput (UnityEngine.InputSystem.InputActionAsset)
UnityEngine.InputSystem.PlayerInput:OnEnable() (at Library/PackageCache/
    com.unity.inputsystem@1.0.0/InputSystem/Plugins/PlayerInput/PlayerInput.cs:1564)

这只是 Unity 中的一个错误,如果您只是使用玩家输入转到任何游戏对象,将默认地图更改为其他值,然后将其更改回原始值并保存,错误就会消失。

如果您转到检查器中的对象,重新选择它,然后重新保存它,那么错误应该停止。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM