Getting started with the Dungeon Graph Generator sample
Prerequisites
This sample requires Unity 6000.5 or later.
Import the sample
- Open Package Manager
- Select the Graph Toolkit package
- Navigate to the Samples tab
- Import the Dungeon Graph Generator sample
The Package Manager copies sample files in your Assets folder. They are now ready to use.
Test the sample
- Open the
CryptGenerationSheetin the inspector (Assets/Samples/Graph Toolkit/<installed package version>/Dungeon Graph Generator Sample/Scriptable Objects/CryptGenerationSheet.asset). - Edit the fields as you wish.
- Click on the
Generatebutton.
This will generate a dungeon graph asset at Assets/Generated/<Dungeon Graph Name>.dg.
You can now edit the generated graph as you wish or regenerate it by clicking again on the Generate button.
Create your own dungeon graph
- Click Assets > Create > Graph Toolkit Samples > Dungeon Graph.
- Name the new graph asset (for example,
My Own Dungeon Graph). - Double-click the new graph asset to open the Graph Editor.
Right-click in the graph to create and connect nodes.