[英]Unity - InputSystem error : "Cannot generate reader for abstract class InputControl"
I have been using the new Unity Input System with good success until I got this error and I don't know how to solve it.我一直在成功使用新的 Unity 输入系统,直到出现此错误并且我不知道如何解决它。 The first error reads "(0,0): error Cannot generate writer for abstract class InputControl".
第一个错误显示为“(0,0): error Cannot generate writer for abstract class InputControl”。 Console
安慰
I am using Input System 1.3.0.我正在使用输入系统 1.3.0。 I also use the networking asset Mirror in case it has something to do with it.
我还使用网络资产 Mirror 以防它与它有关。
Can someone help me here?有人可以在这里帮助我吗? =)
=)
Ok I found the problem:好的,我发现了问题:
I added the [Command] header over one of my Input Handler method, after removing it it works fine.我在我的一种输入处理程序方法上添加了 [Command] header,删除它后它工作正常。
//[Command]
public void OnScroll(InputAction.CallbackContext ctx)
not不是
[Command]
public void OnScroll(InputAction.CallbackContext ctx)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.