You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Assets/com.fluid.dialogue/package.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,6 @@
5
5
"description": "A Unity dialogue system that features an easy to use drag and drop graph. ScriptableObject driven with the ability to write custom actions and conditions to create complex dialogue workflows.",
Copy file name to clipboardexpand all lines: README.md
+119
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,66 @@
2
2
3
3
A Unity dialogue system that features an easy to use drag and drop graph. ScriptableObject driven with the ability to write custom actions and conditions to create complex dialogue workflows.
4
4
5
+
***Visual graph** editor
6
+
* Ability to create custom **actions** that execute as dialogue progresses
7
+
* Create custom **conditions** to determine how dialogue branches
8
+
* Built in **local database** to set and check variables for branching
9
+
* Allows you to **bring your own UI** or use a starter example (event driven dialogue presentation)
10
+
11
+

12
+
13
+
**Support**
14
+
15
+
Join the [Discord Community](https://discord.gg/8QHFfzn) if you have questions or need help.
16
+
17
+
See upcoming features and development progress on the [Trello Board](https://trello.com/b/wMrsWyxn/fluid-dialogue).
18
+
19
+
## Getting Started
20
+
21
+
First you'll need to [install](#installation) the package with Unity Package Manager. After that you can create a database as follows.
22
+
23
+
1. Right click on the project window
24
+
1. Create -> Fluid -> Dialogue -> Graph
25
+
1. Click "Edit Dialogue" to customize your graph
26
+
27
+
To create a custom UI to display your graph, you'll need to handle a series of events emitted by the dialogue controller. You can find a full example of this in the [Examples](#examples) folder.
28
+
29
+
### Node Types
30
+
31
+
There are a few different node types. Each with a specific focus in mind.
32
+
33
+
* Dialogue: Choices and text from a specific actor
34
+
* Hub: Used to route dialogue logic without triggering any dialogue or choices
35
+
* Choice Hub: Used to trigger a set of choices multiple times
36
+
37
+
### Actors
38
+
39
+
Every dialogue should have an actor assigned to it. Actors can be created with the following steps.
40
+
41
+
1. Right click on the project window
42
+
1. Create -> Fluid -> Dialogue -> Actor
43
+
44
+
### Actions
45
+
46
+
Actions can be added after selecting a node. They can be triggered before a node activates (enter actions) or after a node is complete (exit actions). Note that actions can activate with a delay.
47
+
48
+
### Conditions
49
+
50
+
Conditions are just like actions. Except if any of them return false the node will be skipped at runtime until it's evaluated again.
51
+
52
+
### Local Variables
53
+
54
+
To create a local variable and use it do the following.
55
+
56
+
1. Right click on the project window
57
+
1. Create -> Fluid -> Database -> Choose a variable type
58
+
59
+
To use the variable simply select a node on the graph. Then click the plus sign on a condition (variable checks) or action (change variable value) in the inspector. Please note you must assign the variable you just created to use it.
60
+
61
+
### Examples
62
+
63
+
To see the entire Fluid Dialogue workflow, it's highly recommended that you download this repo and run projects in the `Assets/Examples` folder.
64
+
5
65
## Installation
6
66
7
67
Fluid Dialogue is used through [Unity's Package Manager](https://docs.unity3d.com/Manual/CustomPackages.html). In order to use it you'll need to add the following lines to your `Packages/manifest.json` file. After that you'll be able to visually control what specific version of Fluid Dialogue you're using from the package manager window in Unity. This has to be done so your Unity editor can connect to NPM's package registry.
@@ -23,6 +83,65 @@ Fluid Dialogue is used through [Unity's Package Manager](https://docs.unity3d.co
23
83
}
24
84
```
25
85
86
+
## APIs
87
+
88
+
The following APIs are available for customizing your dialogue experience.
89
+
90
+
### Custom Actions
91
+
92
+
You can create your own custom actions for the dialogue tree with the following API syntax.
0 commit comments