[unity]Input System 插件包生成的脚本文件报错
今天学习unity的输入系统,下载了Input System这个包,然后配置了一个移动操作

然后通过这个配置自动生成一个脚本文件
但是这个脚本文件生成出来之后就会报错
报错一:
Assets\Setting\InputAction.cs(18,36): error CS0738: 'InputAction' does not implement interface member 'IInputActionCollection2.FindAction(string, bool)'. 'InputAction.FindAction(string, bool)' cannot implement 'IInputActionCollection2.FindAction(string, bool)' because it does not have the matching return type of 'InputAction'.
报错二:
Assets\Setting\InputAction.cs(18,36): error CS0535: 'InputAction' does not implement interface member 'IInputActionCollection2.FindBinding(InputBinding, out InputAction)'
报错三:
Assets\Setting\InputAction.cs(18,36): error CS0535: 'InputAction' does not implement interface member 'IInputActionCollection.Contains(InputAction)'
报错四:
Assets\Setting\InputAction.cs(18,36): error CS0738: 'InputAction' does not implement interface member 'IEnumerable.GetEnumerator()'. 'InputAction.GetEnumerator()' cannot implement 'IEnumerable.GetEnumerator()' because it does not have the matching return type of 'IEnumerator'.
报错五:
Assets\Setting\InputAction.cs(261,33): error CS0426: The type name 'CallbackContext' does not exist in the type 'InputAction'