Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

退出Play Mode以后InputSystem报错 #1

Open
CurryPseudo opened this issue Apr 28, 2019 · 1 comment
Open

退出Play Mode以后InputSystem报错 #1

CurryPseudo opened this issue Apr 28, 2019 · 1 comment

Comments

@CurryPseudo
Copy link

在2018.3.11和20.18.3.14中出现相同错误

  1. 打开SampleScene,点击Play
  2. 退出Play
  3. Unity log持续报错

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Experimental.Input.InputActionState+TriggerState.get_phase () (at Library/PackageCache/[email protected]/InputSystem/Actions/InputActionState.cs:2534)
UnityEngine.Experimental.Input.InputActionState.OnAfterUpdateProcessContinuousActions (UnityEngine.Experimental.Input.InputUpdateType updateType) (at Library/PackageCache/[email protected]/InputSystem/Actions/InputActionState.cs:788)
UnityEngine.Experimental.Input.InputManager.InvokeAfterUpdateCallback (UnityEngine.Experimental.Input.InputUpdateType updateType) (at Library/PackageCache/[email protected]/InputSystem/InputManager.cs:2839)
UnityEngine.Experimental.Input.InputManager.OnUpdate (UnityEngine.Experimental.Input.InputUpdateType updateType, UnityEngine.Experimental.Input.LowLevel.InputEventBuffer& eventBuffer) (at Library/PackageCache/[email protected]/InputSystem/InputManager.cs:2832)
UnityEngine.Experimental.Input.LowLevel.NativeInputRuntime+<>c__DisplayClass6_0.<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType updateType, UnityEngineInternal.Input.NativeInputEventBuffer* eventBufferPtr) (at Library/PackageCache/[email protected]/InputSystem/NativeInputRuntime.cs:115)
UnityEngineInternal.Input.NativeInputSystem.NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType updateType, System.IntPtr eventBuffer) (at C:/buildslave/unity/build/Modules/Input/Private/Input.cs:110)

Action index out of range when updating continuous actions
UnityEngine.Experimental.Input.LowLevel.<>c__DisplayClass6_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr) (at C:/buildslave/unity/build/Modules/Input/Private/Input.cs:110)

@SardineFish
Copy link
Owner

A preview version of InputSystem package (v0.2.2-preview) is used in project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants