[Feature Request] Delete saved Blackboards info.

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13311
    kesha
    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?

      #13313
      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 🙂

        #13312
        kesha
        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.