#Ghost not serialize with correct components in a build, but normal in the editor
1 messages · Page 1 of 1 (latest)
You'll need to make sure that ConvertToGhostPrefab()is getting called on the server and all the clients. Also verify that GhostPrefabCreation.Config is same everywhere too
I think I've solved this issue. The problem is that I store typeindexes in a blob, but they're only stable at runtime. In a build, the typeindex of ghost components are modified by netcode. Or, more precisely, as I understand it, they basically change during build compilation. I'll most likely use stabletypehash, but it also has issues with future version compatibility. Can you tell me how to solve this issue with versioning? The TypeVersion attribute on component struct?