Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

New unity input system problems

$
0
0
so im makeing a 2D platformer and i want to use unity new input system but i did the movment script and input handler when i run the game a can jump but when i try to move it will stop the game and show this error : InvalidOperationException: Cannot read value of type 'float' from control '/XInputControllerWindows/leftStick' bound to action 'PlayerControls/Move[/XInputControllerWindows/leftStick]' (control is a 'StickControl' with value type 'Vector2') UnityEngine.InputSystem.InputActionState.ReadValue[TValue] (System.Int32 bindingIndex, System.Int32 controlIndex, System.Boolean ignoreComposites) (at Library/PackageCache/com.unity.inputsystem@1.0.2/InputSystem/Actions/InputActionState.cs:2038) UnityEngine.InputSystem.InputAction.ReadValue[TValue] () (at Library/PackageCache/com.unity.inputsystem@1.0.2/InputSystem/Actions/InputAction.cs:934) InputHandler.Update () (at Assets/Input/InputHandler.cs:31) Can someone help me

Viewing all articles
Browse latest Browse all 2891

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>