Assigning local player for settings menu

Grannyboy

Active member
First of all this might be a topic for the Photon forums, but I try here first.

Im currently just experimenting with a battle royale game with third person controller + Photon addon. In the UI prefab that comes with the controller I created a settings menu. In this settings menu I want to let the player be enable to change mouse sense from the <Unity input> script attached to the Player prefab.

My issue is, how do I assign the right local player during runtime so that I change the right players <Unity input> options?

1646929690942.png

In a offline project its super easily done like this:
1646929745657.png

But in a Photon project, how do I find my viewID's gameobject and assign it to my settings menu during runtime?

I experimented a bit with the following code just for context:
(None of it works obviously)
1646929876074.png

Anyone who done something similar who can share some thoughts and tips?

Thanks!
 
Top