Players are active in the same scene, however can't interact with each other.

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 PUN.

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.

Players are active in the same scene, however can't interact with each other.

UWantARefund
2021-10-04 20:51:14

Hello, I am learning Photon Unity Networking for the first time, and am going off exclusively the stuff given in the initial tutorials. I have a player that is being instantiated using PhotonNetwork.Instantiate();. The players have a large sphere that they can interact with. The sphere has a "PhotonView" component as well as a "Photon View RigidBody" component. This is visible to both players in the room. When the ball is acted upon by one player, it is seen to move in the others screen. However, the players, despite having PhotonViews attached to them (including transform, rigidbody, and transform classic) they are still not visible.

The prefab for the payer is in a resource folder.

The player prefab is being instantiated in both the editor and the built executable.

The photon view component has the following

Ownership Transfer: fixed

Observables: Unreliable on Change

Observables search: Auto Find Alll

I also have Universal Render Pipeline installed and its shader type is applied to the player prefab. The game manager as well as the launcher scripts that I have created don't appear to be the source of the problem. I cross referenced them with the existing launcher and game manager scripts and have found them to be nearly identical.

I've been looking to narrow down the problem as much as possible before asking this question, however I have not managed to solve it. Please get back to me as soon as you can if you have any information.

Thank you.

Comments

UWantARefund
2021-10-06 00:47:58

Bumping this up.

UWantARefund
2021-10-07 22:24:17

Bumping up again.

UWantARefund
2021-10-07 22:29:13

Alright I figured out the issue, I was transmitting the data as Unreliable on change, when I should've made it reliable. It's working now as intended and will keep this here in case there's anyone else who runs into a similar problem.

Dimistolers
2021-10-10 18:00:29

UWantARefund 2021-10-07T22:29:13+00:00

Alright I figured out the issue, I was transmitting the data as Unreliable on change, when I should've made it reliable. It's working now as intended and will keep this here in case there's anyone else who runs into a similar problem.

Thanks, I had this problem and couldn't understand why.

Back to top