I'm having trouble with GetPlayerObject() in client

Hi I try to use runner.GetPlayerObject() to get each player object

but I don't know why it doesn't work

FusionManager.runner.SetPlayerObject(Object.InputAuthority, Object);
var obj = FusionManager.runner.GetPlayerObject(Object.InputAuthority);
Debug.LogError($"{Object.InputAuthority}, {obj}");

I use to check it work

But it only work in server, In client the "obj" is Null

I want to know how to fix it


  • even not this code I write SetPlayer() when I spawn player but also can't get playerobject in client