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?
In a offline project its super easily done like this:
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)
Anyone who done something similar who can share some thoughts and tips?
Thanks!
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?
In a offline project its super easily done like this:
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)
Anyone who done something similar who can share some thoughts and tips?
Thanks!