# Techtree

The techtree allows you to visually design your techtree with a node editor.

## Create node

1. Create a new DataObject of type techree
2. Select the techtree object. You can now start adding your first tech-nodes: Right click on the canvas and select "Add new node".

<figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2Flz2FSzZlLnD1LuXSKYgn%2FtechtreeAddNode.gif?alt=media&#x26;token=1f25e908-7898-45aa-a7c9-22c3bc122a33" alt=""><figcaption></figcaption></figure>

## Connect nodes

Each node gets a TechID, this ID is being used to connect nodes to each other.

1. Create a second node.
2. Select the first node, in the Unlock TechIDs field, click on + Add Unlock
3. Select the TechID of the second node (ID: 0) or any other ID that you want to connect to.

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FUFb4vdwKqyRFq43J8CnN%2Ftechtree_connectNode.png?alt=media&#x26;token=09a11859-e636-41d5-87e1-7b2cf35acc37" alt=""><figcaption></figcaption></figure></div>

## Research costs

The research costs defines how much it costs to unlock this tech. It can contain multiple resources of type TechtreeResource. See TechtreeResource for more information about it.
