[Feature Request] Delete saved Blackboards info.

NodeCanvas Forums General Discussion [Feature Request] Delete saved Blackboards info.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15156
    Kenny
    Participant

    Hi Nuverian. I am now making a save system for my game. I can save and load blackboards, but I don’t know how to delete saved data? can you help me please?

    #15162
    Gavalakis
    Keymaster

    Hey,

    Are you using the Save and Load methods of blackboards which uses Unity PlayerPrefs for saving and loading with a key?
    If so, an entry from Unity PlayerPrefs can be deleted using the Unity PlayerPrefs.DeleteKey method.
    If you do not provide a custom “key” name for when saving, then the “key” will be the blackboards name property; thus you can for example call PlayerPrefs.DeleteKey(blackboard.name);

    Let me know if that is indeed the case.
    Thanks 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

    #15163
    Kenny
    Participant

    PlayerPrefs.DeleteKey(blackboard.name) This work for mе. Thanks

     

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.