私はUnity初心者で、この動画は、私のゲーム制作にとってもとても役立っています。ありがとうございます。 ですが、動画通りに作らせていただいたのですが、左スティックでプレイヤーを動かすとエラーが4つほど発生してしまします。 バージョンは、2021.3.37f1で作らせていただいています。 解決方法を教えてください。 エラー 1つ目:InvalidOperationException: Cannot read value of type 'Vector3' from control '/XInputControllerWindows/leftStick' bound to action 'Player/Move[/XInputControllerWindows/leftStick]' (control is a 'StickControl' with value type 'Vector2') 2つ目:InvalidOperationException while executing 'started' callbacks of 'Player/Move[/XInputControllerWindows/leftStick]' UnityEngine.InputSystem.LowLevel.NativeInputRuntime/<>c__DisplayClass7_0:<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr) 3つ目:InvalidOperationException: Cannot read value of type 'Vector3' from control '/XInputControllerWindows/leftStick' bound to action 'Player/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/[email protected]/InputSystem/Actions/InputActionState.cs:2808) UnityEngine.InputSystem.InputAction+CallbackContext.ReadValue[TValue] () (at Library/PackageCache/[email protected]/InputSystem/Actions/InputAction.cs:1948) PlayerController_PC.OnMove (UnityEngine.InputSystem.InputAction+CallbackContext context) (at Assets/PlayerController_PC.cs:68) UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at <583df70190f94511bd46f12943531dbc>:0) UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <583df70190f94511bd46f12943531dbc>:0) UnityEngine.InputSystem.Utilities.DelegateHelpers.InvokeCallbacksSafe[TValue] (UnityEngine.InputSystem.Utilities.CallbackArray`1[System.Action`1[TValue]]& callbacks, TValue argument, System.String callbackName, System.Object context) (at Library/PackageCache/[email protected]/InputSystem/Utilities/DelegateHelpers.cs:46) UnityEngine.InputSystem.LowLevel.<>c__DisplayClass7_0:<set_onUpdate>b__0(NativeInputUpdateType, NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate(NativeInputUpdateType, IntPtr) 4つ目:InvalidOperationException while executing 'performed' callbacks of 'Player/Move[/XInputControllerWindows/leftStick]' UnityEngine.InputSystem.LowLevel.NativeInputRuntime/<>c__DisplayClass7_0:<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*) UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr) 長くなってすみません。
unfortunately I understand little, but I love your skill!^^ By any chance would you be available to work for a freelancer project? I'll pay half first with paypal and half at the end of the work, please let me know so In case we can get in touch!:)
@yuzan_96142 жыл бұрын
I am very happy to hear that you like my skills. It's going to be difficult right away, but I think we'll be doing things like that in the future, so please come back if you have the time. English by Google Translate.