#isLocalPlayer return false

8 messages · Page 1 of 1 (latest)

cloud scaffold
#

Hi, everyone! I am stuck at the point where in my lobby player.cs Start(), the isLocalPlayer always returns false so I can't assign the singleten properly... here is my code and settings of the player prefab, please help!!

scarlet rampart
#

Also move your GetComponent to OnValidate / Reset and make that field a [SerializeField] so it's set at design time, not at runtime

#

You don't need to SyncVar the matchID either - only server needs that. It means nothing to clients

cloud scaffold
#

It sees like the OnStartLocalPlayer is not running... I debug a msg in it and it doesn't show up

cloud scaffold
#

oh it works, it is my network manager settings problem

#

thank you so much for the help!!