Shader Graph Window
Description
The Shader Graph Window contains the workspace for creating shaders with the Shader Graph system. To open the Shader Graph Window, you must first create a Shader Graph Asset. For more information, refer to the Getting Started section.
The Shader Graph window contains various individual elements such as the Blackboard, Graph Inspector, and Main Preview. You can move these elements around inside the workspace. They automatically anchor to the nearest corner when scaling the Shader Graph Window.
Toolbar
The toolbar at the top of the Shader Graph Window contains the following commands.
Icon | Item | Description |
---|---|---|
Save Asset | Save the graph to update the Shader Graph Asset. | |
Save As | Save the Shader Graph Asset under a new name. | |
Show In Project | Highlight the Shader Graph Asset in the Project Window. | |
Check Out | If version control is enabled, check out the Shader Graph Asset from the source control provider. | |
Color Mode Selector | Select a Color Mode for the graph. | |
Blackboard | Toggle the visibility of the Blackboard. | |
Graph Inspector | Toggle the visibility of the Graph Inspector. | |
Main Preview | Toggle the visibility of the Main Preview. | |
Help | Open the Shader Graph documentation in the browser. | |
Resources | Contains links to Shader Graph resources (like samples and User forums). |
Workspace
The workspace is where you create Node networks. To navigate the workspace, do the following:
- Press and hold the Alt key and drag with the left mouse button to pan.
- Use the mouse scroll wheel to zoom in and out.
You can hold the left mouse button and drag to select multiple Nodes with a marquee. There are also various shortcut keys you can use for better workflow.
Context Menu
Right-click within the workspace to open a context menu. However, if you right-click on an item within the workspace, such as a Node, the context menu for that item opens. The workspace context menu provides the following options.
Item | Description |
---|---|
Create Node | Opens the Create Node Menu. |
Create Sticky Note | Creates a new Sticky Note on the Graph. |
Collapse All Previews | Collapses previews on all Nodes. |
Cut | Removes the selected Nodes from the graph and places them in the clipboard. |
Copy | Copies the selected Nodes to the clipboard. |
Paste | Pastes the Nodes from the clipboard. |
Delete | Deletes the selected Nodes. |
Duplicate | Duplicates the selected Nodes. |
Select / Unused Nodes | Selects all nodes on the graph that are not contributing to the final shader output from the Master Stack. |
View / Collapse Ports | Collapses unused ports on all selected Nodes. |
View / Expand Ports | Expands unused ports on all selected Nodes. |
View / Collapse Previews | Collapses previews on all selected Nodes. |
View / Expand Previews | Expands previews on all selected Nodes. |
Precision / Inherit | Sets the precision of all selected Nodes to Inherit. |
Precision / Float | Sets the precision of all selected nodes to Float. |
Precision / Half | Sets the precision of all selected nodes to Half. |