> For the complete documentation index, see [llms.txt](https://skilltreegraph.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://skilltreegraph.gitbook.io/docs/readme.md). Agents can also search and read this documentation through its [MCP server](https://skilltreegraph.gitbook.io/docs/~gitbook/mcp).

# Introduction

A visual editor for designing skill trees in Unity 6, with a ready-to-use runtime sample and demo.

**Skill Tree Graph** is a Unity editor tool for designing skill trees visually. You place nodes on a graph, connect them, fill in their data, and the tool generates a `ScriptableObject` (`SkillTreeDatabase`) that holds every skill node. Your game reads that asset at runtime.

![Editor overview](https://457508674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGrM4t7VORzJLY2WOh9M%2Fuploads%2Fgit-blob-e597363b4ddb3b87d32e1b28da6572fce32f7306%2Fss-01-editor-overviews.png?alt=media)

## What you get

* **A node-graph editor window** with pan and zoom, marquee selection, snapping, undo and redo, and a Graph Inspector panel.
* **A data asset generator** that turns the graph into a `SkillTreeDatabase` asset containing one `SkillNode` per node.
* **A polymorphic data model.** Costs, unlock conditions and effects are plain C# classes that you write and pick from a dropdown in the inspector.
* **A runtime sample** (uGUI and TextMeshPro) with an unlock manager, save and load, tooltips, pan and zoom, and an animation hook.
* **A demo scene**, an incremental clicker game that uses the sample runtime with a 23-node skill tree.
* **Extension points** for new node fields, new requirement types, custom save storage and custom node animation.

## How it works

1. Open **Tools → Skill Tree Window** and build the tree on the graph.
2. Save the graph as a JSON file so you can edit it again later.
3. Click **Save Skill Tree As Asset** to generate or update the `SkillTreeDatabase` asset.
4. Assign the asset to the runtime (the included sample or your own) and play.

{% hint style="info" %}
The editor tool and the runtime are separate. The editor produces data. It does not ship any gameplay logic, because every game defines its own currencies, stats and rules. The runtime sample shows one way to consume the data, and the demo shows it in a real game.
{% endhint %}

## What is in the package

| Folder                           | Contents                                                                                         | Assembly                                               |
| -------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------ |
| `Scripts/Editor`                 | The graph editor window, controllers, undo system, save and load                                 | `SkillTreeGraph.Editor` (Editor only)                  |
| `Scripts/Runtime`                | `SkillTreeDatabase`, `SkillNode`, and the cost, effect and condition base classes and interfaces | `SkillTreeGraph`                                       |
| `Scripts/Serialization/SRPeeker` | Inspector dropdown for `[SerializeReference]` fields                                             | `SRPeeker`, `SRPeeker.Editor`                          |
| `Sample/Skill Tree View`         | Runtime sample: manager, controller, uGUI views, prefabs, `PlayerPrefs` save                     | `SkillTreeGraph.Sample`                                |
| `Sample/Skill Node Extension`    | Example of adding custom fields to `SkillNode`                                                   | Attached to the two assemblies above through `.asmref` |
| `Demo`                           | Clicker game demo scene, scripts and a saved skill tree                                          | `SkillTreeGraph.Demo`                                  |

## Requirements

* Unity 6 (6000.0 or newer).
* The Unity UI package (uGUI, which includes TextMeshPro in Unity 6). It is needed by the runtime sample and demo only, not by the editor tool or the core runtime.
* The tool does not use render-pipeline-specific features, so the editor window and the sample's uGUI work the same in Built-in, URP and HDRP.

## Where to go next

* New here? Start with [Installation](https://skilltreegraph.gitbook.io/docs/getting-started/installation.md) and then the [Quick Start](https://skilltreegraph.gitbook.io/docs/getting-started/quick-start.md).
* Want to understand the vocabulary first? Read [Core Concepts](https://skilltreegraph.gitbook.io/docs/getting-started/core-concepts.md).
* Looking for a shortcut or toolbar button? See [Shortcuts & Mouse Controls](https://skilltreegraph.gitbook.io/docs/editor-guide/editor-guide/shortcuts.md) and [Toolbar](https://skilltreegraph.gitbook.io/docs/editor-guide/editor-guide/toolbar.md).
* Adding your own data to nodes? See [Extending the Skill Node](https://skilltreegraph.gitbook.io/docs/extending/extending/extending-the-skill-node.md).
* Want to see it running? Open the [Clicker Demo](https://skilltreegraph.gitbook.io/docs/demo/clicker-demo.md).
