OverflowException with NetworkVariable using InstantiateAndSpawn with Dedicated-Server #3079
Labels
stat:awaiting response
Status - Awaiting response from author.
stat:awaiting triage
Status - Awaiting triage from the Netcode team.
type:bug
Bug Report
Description
OverFlowException when instantiating a object with networkvariables on it, using InstantiateAndSpawn when host is dedicated server
Reproduce Steps
Actual Outcome
OverflowException: Reading past the end of the buffer, Error
server spawns player but chokes on the declaration of the networkvariable
no matter what the network variable is it will not work, unless it was a scene object.
Expected Outcome
It behaves normally initializing the network variable
Environment
Additional Context
It was fixed by instantiating then using obj.SpawnAsPlayer(clientId) instead of InstantiateAndSpawn
Full Error:
The text was updated successfully, but these errors were encountered: