This project consists of three main components:
- WASD Editor - Core editor implementation
- WASD Editor Unity Interpreter - Unity integration package
- Character Creation
- Branching Dialogue Trees
- Designer Friendly Interface
- JSON Export Format
- Sample Dialogue System Implementation
- Easy Integration with Existing Projects
- Dialogue Callbacks Support
- Compatible with Editor Output
- Unity Engine (2023+)
- Newtonsoft JSON (com.unity.nuget.newtonsoft-json)
- Newtonsoft JSON Package
- Unity 2023+
- Download the binaries from gdscvit/itch.io
- Run the application directly - no additional dependencies required
- Import the Unity package into your Unity 2023+ project
- Add the provided prefab to your scene
- Import JSON files exported from the editor
- Call
DialogueTreeInterpreter.StartDialogue(TextAsset t)
to initiate dialogue - Implement dialogue callbacks as needed
The following class is used to generate the json output of the program. It uses the newtonsoft.json library to Serialize and Deserialize data
// Core Data Classes
public class DialogueTree
{
public Dictionary<string, float> variables;
public Character[] chars;
public DialogueData[] dialogues;
}
public class DialogueData
{
public int id;
public string title;
public string line;
public OptionData[] options;
public int[] charIDs;
public int charCurrentlySpeaking;
}
public struct Character
{
public int id;
public string Name;
}
public struct OptionData
{
public string title;
public int id;
}
graphicmismatch (Rayan Madan) |
Made with ❤ by GDSC-VIT