PUN2 with New input System not working

Options
Hi, I'm trying pun2 with the new input system of Unity (preview version).
I'm working with the Player Input SendMessage, meaning that every time a keyboard or gamepad moves, call the OnMove method.

And I have the following:
public OnMove(){
if (photonView.IsMine){
var movePosition= value.Get<Vector2>();
Debug.Log("Input received");
}

However the message "input received" never appears at the console, neither the gameobject moves.
Do I need to do something additional for this?
Or pun2 is not supported with the new input system yet?

Thanks in advance,
regards

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited January 2020
    Options
    Hi @Dakiu,

    Thank you for choosing Photon!

    PUN2 has nothing to do with Unity's new input system.
    Meaning, it's not related to it and can be used with or without it.
    There should not be any reason for any incompatibility since PUN does not rely on any input system.

    You should check your code and how you use the input system with PUN.
  • Dakiu
    Options
    Hi,

    Thanks for the answer, I'll check my code again.

    Thanks!
  • Vindorable
    Options
    Dakiu wrote: »
    Hi,

    Thanks for the answer, I'll check my code again.

    Thanks!

    Hey Dakiu, have you figured this out? I don't know how to add the Player Input component into Photon View script inside observed components because it does not have the IPunObservable Interface.