Create your custom Tech Tree or Skill Tree editor inside inspector using Unity - Strategy Tutorials

preview_player
Показать описание
You want to enhance your game's play time by adding techtree or skilltree? Your game characters are too drab for long hours of fun. You want to include a techtree for increased variety? Or you already added but cannot spend hours trying to connect skills or techs to make the tree? Or you don't have time to understand and code according to new UNITY GUI system. (neither canI!) Now you can build a tree inside inspector by simply dragging and dropping your skills or technologies into the inspector!

This tutorial will work for making any node-based graph system.

0:00 - Intro
0:32 - Description
0:58 - Tech Script
1:33 - TechTree Script
7:42 - TechTreeEditor Script
9:12 - OnInspectorGUI ()
11:28 - Draw Tech nodes
15:20 - Drag nodes with mouse
16:35 - Create connection (requirement)
18:21 - Scrolling the techtree / skilltree
19:03 - Guide curve
19:59 - Drag new scriptableobjects into inspector
21:25 - Delete nodes and SetDirty function
22:45 - Final tree

TechTree editor is now available at Unity Asset Store with its own editor window;
Рекомендации по теме
Комментарии
Автор

Thanks for the tutorial, out of interest what extension are you using in Visual Studio for the bracket colour whitespace/tab? many thanks

DenhamA
Автор

Does this system also work for having a node that has multiple requirements? (Multiple arrows pointed towards one tech, and they all need to be unlocked before hand?)

SuperTerryBeat
Автор

I've been using this tech tree editor for ~6 months now, made a couple of my own changes, but overall fantastic tutorial.
I was wondering if you knew/had any ideas how to *zoom out* the whole tree? I accidently made it too huge and cumbersome to navigate around!

SuperTerryBeat
Автор

Once I have the 3 scripts how do I use them in a node?

Rafael-qrti
Автор

Could you share the source code of this node system? It would be so cool to access it and play with it.

Tuligarnio
Автор

Hello, there was an error like this, I wrote everything according to your video:

NullReferenceException: Object reference not set to an instance of an object
TechTreeEditor.OnInspectorGUI () (at
() (at
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)



GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
(int, intptr, bool&)

what could be the error, I double-checked the whole code and everything is similar to yours...

bloodyn