Documentation

Learn how to use NodeCanvas

Download PDF Version

Save & Load

A Blackboard can Save and Load it’s variables state in PlayerPrefs with ease. This means that you can possibly save the whole state of a Behaviour, or use it for any other purposes, like for example creating a save system. All the variables of a blackboard are able to save and load.

This can be done in code with these two simple methods.

string Save(string savekey)
Save the blackboard state in PlayerPrefs at the gived saveKey. Returns the json string serialized.

bool Load(string saveKey)
Load the blackboard state previously saved in PlayerPrefs of the provided saveKey. Returns whether or not Load was successfull.

Alternatively, this can also be done with the included actions found under the “Utility” category.

Yes No Suggest edit
2 of 2 users found this section helpful
Suggest Edit