Getting Started with Texture Maker Sample
Important
This experimental package is deprecated and no longer supported as of Unity version 6.4. Unity Graph Toolkit is included as a module in the Editor as of Unity version 6.4 and later, and does not require a separate installation. You can find the samples and accompanying documentation in the Unity Graph Toolkit samples package com.unity.graphtoolkit-samples.
Prerequisites
- Unity 6000.2 or later
- Unity Graph ToolKit 0.1.0 or later
Import the Sample
- Open Package Manager
- Select the Graph Toolkit package
- Navigate to the Samples tab
- Import the Texture Maker sample
Package Manager copies the sample files to your Assets folder. They are ready to use.
Create Your First Texture
- Click Assets > Create > Graph Toolkit Samples > Texture Maker Graph
- Name the new graph asset, for example,
MyFirstTextureGraph - Double-click the new graph asset to open the Graph Editor
At this point, there's a by-design error: Assets/<name>.texmkr: Add a CreateTextureNode in your Texture graph.
Complete Your Graph
- Right-click on the canvas and select Create Node
- Double-click on CreateTextureNode
- Add a Uniform node to the canvas
- Select a color in the Uniform node
- Connect the Uniform node output to the CreateTextureNode input
- Save your graph
Test Your Texture
Select MyFirstTextureGraph.texmkr in the Project window. The inspector displays the texture preview in the Inspector.
Drag this graph asset onto a GameObject to apply your texture. The GameObject now displays your selected color.
To modify the texture, change the Uniform node's color and save the graph to apply the updates in the Scene view.