noblewhale / SmoothSync-public

Public SmoothSync repo for issue tracking.
0 stars 0 forks source link

Exceptions on all Mirror.NetworkServer.Spawn() spawned objects #21

Open Alkanov opened 4 years ago

Alkanov commented 4 years ago

Mirror: 13.0.1 Unity asset store SmoothSynch: 3.25 Unity asset store

I get this exception multiplied by the amount of spawned objects (more than 1000x enemies on the server)

NullReferenceException: Object reference not set to an instance of an object
Smooth.SmoothSyncMirror.SendStateToNonOwners (Smooth.NetworkStateMirror state) (at Assets/Smooth Sync/Mirror/Smooth Sync Asset/SmoothSyncMirror.cs:2063)
Smooth.SmoothSyncMirror.sendState () (at Assets/Smooth Sync/Mirror/Smooth Sync Asset/SmoothSyncMirror.cs:860)
Smooth.SmoothSyncMirror.FixedUpdate () (at Assets/Smooth Sync/Mirror/Smooth Sync Asset/SmoothSyncMirror.cs:700)

On version 3.26 of SmoothSync (I'm not even sure how did I get v3.26 if latest on UAS is 3.25 ...😵) I dont get this exception but I get the warning on https://github.com/noblewhale/SmoothSync-public/issues/19