Skill Tree Graph
Documentation ... Costs, unlock conditions and effects are plain C# classes that you write yourself. You pick them from a dropdown in the inspector, and new classes appear automatically ...
by Kanbadev
Price History +
Key features
Visual graph editor (Editor only)
- Node graph window under Tools → Skill Tree Window
- Pan, zoom, marquee selection, group move, duplicate and delete
- Grid snapping, adjustable graph bounds and zoom limits
- Connect mode and Ctrl+Click node creation
- Undo and redo for the last 20 actions (create, duplicate, delete, connect, disconnect)
- Graph Inspector panel for editing node fields
- Autosave and crash-safe restore when the window closes, scripts reload or Play Mode starts
Data workflow
- Save and load trees as JSON, which is easy to version-control and edit again
- One-click generation of a SkillTreeDatabase ScriptableObject with one SkillNode sub-asset per node
- Regenerating updates the asset in place, so existing scene and prefab references stay valid
- Fork trees with Save As (each tree has a unique Id)
Flexible data model
- Each node stores name, description, icon, max level, costs, unlock conditions, effects, connections, size and position
- Costs, conditions and effects are abstract C# classes (SkillCost, SkillUnlockCondition, SkillEffect). Pick your own subclasses from an inspector dropdown ([SerializeReference] with SR Peeker).
- Multiple costs, conditions and effects per node
- ISkillContext links skills to your own game systems, with no scene references in the data asset
- Partial classes (SkillNode, SkillNodeSaveData, SkillNodeDataMapper) and .asmref support, so you can add custom node fields from your own folder
Runtime sample (uGUI and TextMeshPro)
- Prefab-based skill tree UI you can drop into a scene
- Unlock manager with node states (Locked, Available, Unlocked, Maxed), multi-level nodes and unlock results
- Progress save and load, with PlayerPrefs storage included and a custom storage interface (ISkillTreeSaveStorage)
- Tooltips, animated connection lines, and pan, zoom and focus controls
- Three display modes: Progressive, Progressive with Preview, and Instant
- C# events for unlocks, failures, state changes, saves and UI interaction
- Animation hook (ISkillNodeAnimator, SkillNodeAnimatorBase) for reveal, hover and other node effects
- SkillTreeManager is a plain C# class with no UI dependency, so you can reuse it with UI Toolkit, world-space UI or your own interface
Demo and documentation
- Playable incremental clicker demo with a 23-node tree. It includes example costs, parent-based unlock conditions, effects and a node animator.
- Offline documentation
Technical specs
- Unity 6 (6000.0 or newer)
- Any render pipeline (Built-in, URP, HDRP)
- Full C# source, no DLLs
- Assembly definitions: SkillTreeGraph (runtime), SkillTreeGraph.Editor, SRPeeker, SkillTreeGraph.Sample, SkillTreeGraph.Demo
- Requires the Unity UI package (uGUI) for the sample and demo only
Skill Tree Graph is a visual skill tree editor for Unity 6. Design talent trees, tech trees or upgrade webs on a node graph. One click generates a ScriptableObject database that your game reads at runtime.
Is it customizable? Completely.
The editor makes no assumptions about your game’s rules. Costs, unlock conditions and effects are plain C# classes that you write yourself. You pick them from a dropdown in the inspector, and new classes appear automatically after they compile. A node can have several costs, unlock conditions and effects. You can also add your own fields to every node (category, rarity, tags and so on), plug in your own save method, and replace the node animations. The full C# source is included with no DLLs.
Is it suitable for a particular genre? No, it works for any of them.
The package ships no gameplay logic, so you define your own currencies, stats and rules. That makes it a fit for RPGs, strategy and tech trees, roguelike meta-progression, idle and incremental games, and more.
What’s included
- Node graph editor with pan and zoom, marquee selection, snapping, undo and redo, and a Graph Inspector
- Save and load trees as JSON, so you can keep editing them
- One-click generation of a SkillTreeDatabase asset (ScriptableObject)
- A ready-to-use runtime sample (uGUI and TextMeshPro) with unlock logic, save and load, tooltips, pan and zoom, and an animation hook. Use it as it is, customize it through prefabs, or replace it and build your own UI on the core data model.
- A playable demo scene: an incremental clicker game with a 23-node skill tree and example costs, conditions and effects
Support
I am fully open to requests and suggestions. Feel free to contact me to share your thoughts and experiences.