Saving/Loading Dialogue Trees

Forums 💬 NodeCanvas ⚙️ Support Saving/Loading Dialogue Trees

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18812
    aer0ace
    Participant

      I’m looking to load DialogueTrees from disk, and I was trying to load the GameObject that has a DialogueTree on it via Resources.Load(), but it turns out DialogTree is a ScriptableObject, so I can’t call GetComponent<>() on the GameObject. What is the proper way of loading DialogueTrees from the Resources directory, or what is the recommended way of loading DialogueTrees?

      #18814
      Gavalakis
      Keymaster

        Hello,

        The DialogueTree is a very special case. Please use this workaround to get it:

        I know it’s not prety but it’s the only way to do it right now 🙂
        The IScriptableComponent interface is part of the ‘ParadoxNotion’ namespace.

        Thanks!

        #18813
        aer0ace
        Participant

          Thanks! Doesn’t have to be pretty if it works =). And it works great, and I appreciate your speedy and thorough response!

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