Fusion - Could not Send Float From Client to Host
Hi, fusion can send float from host to client's screen. It is working and i can see host's float from client's screen. But when i try send float from client to host, it is not working. I cannot see client's float from host's screen. It cannot send client's float to host's screen.
[Networked(OnChanged = nameof(OnHealthChanged))]
public float health { get; set; }
public static void OnHealthChanged(Changed<Player> changed)
{
Debug.Log("OnHealthChanged:" + changed.Behaviour.health);
}
void Start( )
{
health = Random.Range (4, 6);
}
Comments
-
Hi,
Please read thought Fusion 100 series and getting started tutorial. This is expected behavior, since host/server mode uses only the host or server as state authority.
https://doc.photonengine.com/en-us/fusion/current/getting-started/fusion-intro
https://doc.photonengine.com/en-us/fusion/current/fusion-100/overview
-----
Isaac Augusto
Photon Fusion Team
0