SardineFish / MAJIKA

A 2D pixel art platform ARPG game.
MIT License
42 stars 8 forks source link

退出Play Mode以后InputSystem报错 #1

Open CurryPseudo opened 5 years ago

CurryPseudo commented 5 years ago

在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/com.unity.inputsystem@0.2.1-preview/InputSystem/Actions/InputActionState.cs:2534) UnityEngine.Experimental.Input.InputActionState.OnAfterUpdateProcessContinuousActions (UnityEngine.Experimental.Input.InputUpdateType updateType) (at Library/PackageCache/com.unity.inputsystem@0.2.1-preview/InputSystem/Actions/InputActionState.cs:788) UnityEngine.Experimental.Input.InputManager.InvokeAfterUpdateCallback (UnityEngine.Experimental.Input.InputUpdateType updateType) (at Library/PackageCache/com.unity.inputsystem@0.2.1-preview/InputSystem/InputManager.cs:2839) UnityEngine.Experimental.Input.InputManager.OnUpdate (UnityEngine.Experimental.Input.InputUpdateType updateType, UnityEngine.Experimental.Input.LowLevel.InputEventBuffer& eventBuffer) (at Library/PackageCache/com.unity.inputsystem@0.2.1-preview/InputSystem/InputManager.cs:2832) UnityEngine.Experimental.Input.LowLevel.NativeInputRuntime+<>cDisplayClass6_0.b0 (UnityEngineInternal.Input.NativeInputUpdateType updateType, UnityEngineInternal.Input.NativeInputEventBuffer* eventBufferPtr) (at Library/PackageCache/com.unity.inputsystem@0.2.1-preview/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.<>cDisplayClass6_0:b0(NativeInputUpdateType, NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr) (at C:/buildslave/unity/build/Modules/Input/Private/Input.cs:110)

SardineFish commented 5 years ago

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