#FixedInputEvent Issues

1 messages · Page 1 of 1 (latest)

fleet kite
#

public struct FirstPersonPlayerInputs : IInputComponentData
{
public float2 MoveInput;
public float2 LookInput;
public FixedInputEvent JumpPressed;
}

//Later in a system that tracks player inputs
if (Keyboard.current.spaceKey.wasPressedThisFrame)
{
playerInputs.ValueRW.JumpPressed.Set(); //There is no arguement that There is no argument given that corresponds to the required parameter 'tick' of 'FixedInputEvent.Set(uint)
}

//Later in a system that predicts player movement

            characterControl.Jump = playerInputs.JumpPressed.IsSet; // There is no argument given that corresponds to the required parameter 'tick' of 'FixedInputEvent.IsSet(uint)

Why are Set() and IsSet() not working? I'm literally copying off of the unity documentation for the entitycontroller.