|
1 | | -# Graph Settings Tab |
| 1 | +# Graph Settings tab reference |
2 | 2 |
|
3 | | -## Description |
| 3 | +Use the **Graph Settings** tab in the [Graph Inspector](Internal-Inspector.md) window to change settings that affect the current shader graph as a whole. |
4 | 4 |
|
5 | | -The **Graph Settings** tab on the [Graph Inspector](Internal-Inspector.md) makes it possible to change settings that affect the Shader Graph as a whole. |
| 5 | +## General properties |
6 | 6 |
|
7 | | - |
| 7 | +| Property | Description | |
| 8 | +| :--- | :--- | |
| 9 | +| **Precision** | Select a default [Precision Mode](Precision-Modes.md) for the entire graph. You can override the precision mode at the node level in your graph. | |
| 10 | +| **Preview** | Select your preferred preview mode for the nodes that support preview. The options are: <ul><li>**Inherit**: The Unity Editor automatically selects the preview mode to use.</li><li>**Preview 2D**: Renders the output of the sub graph as a flat two-dimensional preview.</li><li>**Preview 3D**: Renders the output of the sub graph on a three-dimensional object such as a sphere.</li></ul> This property is available only in [sub graphs](Sub-graph.md). | |
8 | 11 |
|
9 | | -### Graph Settings options |
| 12 | +## Target Settings |
10 | 13 |
|
11 | | -| Menu Item | Description | |
12 | | -|:----------|:------------| |
13 | | -| **Precision** | Select **Single** or **Half** from the [Precision](Precision-Modes.md) dropdown menu as the graph's default Precision Mode for the entire graph. | |
14 | | -| **Preview Mode** | Select your preferred preview mode for a node that has a preview from the following options: <ul><li>**Inherit**: The Unity Editor automatically selects the preview mode to use.</li><li>**Preview 2D**: Renders the output of the Sub Graph as a flat two-dimensional preview.</li><li>**Preview 3D**: Renders the output of the Sub Graph on a three-dimensional object such as a sphere.</li></ul> This property is available only when you selected a [Sub Graph](Sub-graph.md). | |
15 | | -| **Active Targets** | A list that contains selected targets. You can add or remove **Active Targets** by selecting the **Add (+)** and **Remove (−)** buttons, respectively. <br/>Shader Graph supports three targets: <ul><li>**Built-in**: Shaders for Unity’s [Built-In Render Pipeline](xref:um-render-pipelines).</li><li>**Custom Render Texture**: Shaders for updating [Custom Render Textures](Custom-Render-Texture.md). </li><li>**Universal**: Shaders for the [Universal Render Pipeline](xref:um-shaders-in-universalrp-reference).</li></ul> The available properties displayed depend on the targets you have added to the list. Refer to the [Shader Material Inspector window properties](xref:um-shaders-in-universalrp-reference) for the respective **Materials** you select for the **Built-in** and **Universal** targets.| |
| 14 | +Add or remove graph targets to the current shader graph and set target properties according to the selected material type. |
| 15 | + |
| 16 | +### Active Targets |
| 17 | + |
| 18 | +A list that contains the [graph targets](Graph-Target.md) selected for the current shader graph. Select the **Add (+)** and **Remove (−)** buttons to add or remove **Active Targets**. |
| 19 | + |
| 20 | +Shader Graph supports the following target types: |
| 21 | +* **Custom Render Texture**: Shaders for updating [Custom Render Textures](Custom-Render-Texture.md). |
| 22 | +* **Built-in**: Shaders for Unity’s [Built-In Render Pipeline](xref:built-in-render-pipeline). |
| 23 | +* **Universal**: Shaders for the [Universal Render Pipeline (URP)](xref:um-universal-render-pipeline), available only if your project uses URP. |
| 24 | +* **HDRP**: Shaders for the [High Definition Render Pipeline (HDRP)](xref:high-definition-render-pipeline), available only if your project uses HDRP. |
| 25 | + |
| 26 | +### Target properties |
| 27 | + |
| 28 | +Each graph target added in the list of **Active Targets** has its own set of properties. |
| 29 | + |
| 30 | +| Property | Description | |
| 31 | +| :--- | :--- | |
| 32 | +| **Material** | Selects a material type for the target. The available options depend on the current target type. | |
| 33 | +| Other properties (contextual) | A set of material and shader related properties that correspond to the current target type and the **Material** you select for the target.<ul><li>For Universal Render Pipeline (URP) target properties, refer to [Shader graph material Inspector window reference for URP](xref:um-shaders-in-universalrp-reference).</li><li>For High Definition Render Pipeline (HDRP) target properties, refer to HDRP's [Shader Graph materials reference](https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@latest/index.html?subfolder=/manual/shader-graph-materials-reference.html).</li></ul> | |
| 34 | +| **Custom Editor GUI** | Renders a custom editor GUI in the Inspector window of the material. Enter the name of the GUI class in the field. For more information, refer to [Control material properties in the Inspector window](xref:um-writing-shader-display-types) and [Custom Editor block in ShaderLab reference](xref:um-sl-custom-editor). | |
| 35 | +| **Support VFX Graph** | Enables this shader graph to support the [Visual Effect Graph](https://docs.unity3d.com/Packages/com.unity.visualeffectgraph@latest) to render particles.<br />**Note**: This option is only available for certain material types. | |
16 | 36 |
|
17 | 37 | ## Additional resources |
| 38 | + |
18 | 39 | - [Precision Modes](Precision-Modes.md) |
19 | | -- [Example Custom Render Texture with Shader Graph](Custom-Render-Texture-Example.md) |
20 | | -- [Custom Editor block in ShaderLab reference](xref:um-sl-custom-editor) |
| 40 | +- [Graph targets](Graph-Target.md) |
0 commit comments