Skip to content

SBSS Transform Var Support Prototype

Choose a tag to compare

@CG-Tespy CG-Tespy released this 29 Feb 22:20

I extended the save system (using the steps explained in the wiki) so that the state of Transforms in Flowchart variables is preserved. I'm not entirely happy with how I implemented it behind the scenes (see the TransformVarDev branch), but the end results are as intended, based on the unit tests in the aforementioned branch. xD

I also intend to support this prototype until I decide on a nicer implementation for the official release.

Just make sure that:

  • All Transforms your vars point to are on GameObjects with unique names. Otherwise, the states might end up applied to the wrong Transforms.
  • The TransformVarSaver is added to the GameObject with the GameSaver, and the TransformVarLoader is added to the one with the GameLoader.
  • The GameObjects that have their Transforms referred to in TransformVars exist by the time the GameLoader does its thing. If the GameObjects aren't present (be it by not being destroyed on load, or not being in the base scene), you may get errors.