Saving & Loading

How to save & load with Skill Web.

Skill Web doesn't have an internal method for saving data, as it's not a save system. However, it does provide a way for save systems to save and load a Web. Any save system that uses JSON or binary serialization should be able to save any web.

To Savable (Saving)

You can create a savable version of a Web (SavableWeb) with the ToSavable method.

SavableWeb mySavableWeb = myWeb.ToSavable();

To Web (Loading)

You can convert a SavableWeb back to a Web with the ToWeb method.

Web myWeb = mySavableWeb.ToWeb();

Examples

The code below is how you can save and load a web with ESave. ESave is my own save systemβ€”it's entirely free, and it's been tested with Skill Web. ESave is not a requirement; you can use the save system of your choice. However, the examples below will only work with ESave.

The examples below load a web from saved data and also load it in the UI.

Notes:

  • The graph is loaded in the Start function if it exists in the saved data.

  • The graph is saved when the application (or play mode) is exited.

  • The code initially loads a web graph named "My Web Graph" if there was no saved web graph found. You may need to change the string to the name of your web (skill tree) if you plan on trying the code.

  • Code customizations are highly recommended.

With ESave Free

With ESave Pro

In case you're using the pro version...

Last updated