#Certain components removed or wiped of data when server and client simulation sync.

1 messages · Page 1 of 1 (latest)

trail jasper
#

I have a shooting system that runs via the predicted simulation that instantiates bullet prefabs and sets some data - sometimes adding components as modifiers. This works well... for the first two frames, then when the client syncs with the server, all those additional components and data are lost on the client simulation - returning back to the original prefab data (transform and physics components are correct ofc).

Why is this sync completely wiping the instantiated prefabs? Is it a setting I'm missing, or am I just not allowed to add additional components on entities. I had it working as intended at some point I remember, was that a bug where the serialisation didn't work properly?

trail jasper
#

For the people who are also having this problem, I solved it by increasing the allowed time for classification in the netcode config.