Using the StarterAssets Third Person Controller with InputReceiver Events

I am using the Starter Assets Third Person Controller which uses a script StarterAssetsInputs to manage the inputs OnLook, OnMove etc.

I need to map these functions to the cameras InputReceiver events so I can capture the inputs and send the same messages. I can't see how to do this using the events in the InputReceiver. The OnLook methods in the StarterAssetsInputs script take an InputValue like this:

public void OnMove(InputValue value)
{
    MoveInput(value.Get<Vector2>());
}

I can see that the InputReceiver takes a CallbackContext.
Do I need to create other public methods in the StarterAssetsInputs script and get the input from the context?

public void OnRemoteMove(InputAction.CallbackContext value)
{
    MoveInput(value.ReadValue<Vector2>());
}
public void OnMove(InputValue value)
{
     MoveInput(value.Get<Vector2>());
}

I added these OnRemote methods to the StarterAssetsInputs script and then was able to connect them to the events in the InputReceiver ... however, I don't get any feedback or logs from this when streaming it in the browser.

1 Like

Do you need to add the InputSender to the camera as well?