Integrating Unity New Input System with Photon Fusion

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Fusion.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Integrating Unity New Input System with Photon Fusion

RayWing
2022-10-02 08:45:48

Hi, please pardon the noob question as I am a very new developer and does not have a strong background in things.

Currently, in my multiplayer project, I am using a ThirdPersonController script created by using the New Input System under Unity. There is Movement, Jump, and HandAction.

We are using the NetworkRunner in Fusion to send data across the network to sync player movement and actions. However, we have no idea on where / how to change the NetworkRunner script so that it takes in the input from the ThirdPersonController.

A search on forums, Youtube, StackOverflow etc yielded no results as the topic was quite specific.

We would very appreciate if someone is able to point us in the right direction, or give an example of how it is done.

Comments

Isaac_Augusto
2022-10-07 14:18:50

Hi,

You don't need (or should) change the NetworkRunner script.

Inputs are pooled by the developer, please read the input manual page: https://doc.photonengine.com/en-us/fusion/current/manual/network-input


Isaac Augusto

Photon Fusion Team

Back to top