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
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
0
Comments
-
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.0 -
Hi,
Thanks for the answer, I'll check my code again.
Thanks!0 -