Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feedback What is the purpose of serializing solverIndices?
#1
Pregunta 
Hello! I've been working on a project with multiple contributors and noticed that the ObiEmitters have a serialized field calledĀ solverIndices, inherited from the ObiActor. I've noticed that it's common for the solverIndices to be re-serialized, leading to rather messy diffs.

As far as I can tell, this field seems to only be used for the runtimeĀ fluid simulation, and probably shouldn't be serialized, but I'm wondering why it might be.

Is this to survive domain reloads? In that case, there might be other ways around it, like storing theĀ solverIndices that need to survive as part of a ScriptableObjectSingleton. Or would there be any other way to needless diffs?
Reply