Fusion - Could not Send Float From Client to Host

Options
Newbiedev
Newbiedev
edited October 2022 in Fusion

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