Property Types
Description
Property Types are the types of Property than can be defined on the Blackboard for use in the Graph. These Properties will be exposed to the Inspector for Materials that use the shader.
Each property has an associated Data Type. See Data Types for more information.
Common Parameters
In addition to values specific to their Data Types, all properties have the following parameters.
Name |
Type |
Description |
Display Name |
String |
The display name of the property |
Exposed |
Boolean |
If true this property will be exposed on the material inspector |
Reference Name |
String |
The internal name used for the property inside the shader |
NOTE: If you overwrite the Reference Name parameter be aware of the following conditions:
- If your Reference Name does not begin with an underscore, one will be automatically appended.
- If your Reference Name contains any characters which are unsupported in HLSL they will be removed.
- You can revert to the default Reference Name by right clicking on it and selecting Reset Reference.
Vector 1
Defines a Vector 1 value.
Data Type |
Modes |
Vector 1 |
Default, Slider, Integer |
Default
Displays a scalar input field in the material inspector.
Field |
Type |
Description |
Default |
Vector 1 |
The default value of the Property. |
Slider
Displays a slider field in the material inspector.
Field |
Type |
Description |
Default |
Vector 1 |
The default value of the Property. |
Min |
Vector 1 |
The minimum value of the slider. |
Max |
Vector 1 |
The maximum value of the slider. |
Integer
Displays an integer input field in the material inspector.
Field |
Type |
Description |
Default |
Integer |
The default value of the Property. |
Vector 2
Defines a Vector 2 value. Displays a Vector 4 input field in the material inspector, where the z and w components are not used.
Field |
Type |
Description |
Default |
Vector 2 |
The default value of the Property. |
Vector 3
Defines a Vector 3 value. Displays a Vector 4 input field in the material inspector, where the w component is not used.
Field |
Type |
Description |
Default |
Vector 3 |
The default value of the Property. |
Vector 4
Defines a Vector 4 value. Displays a Vector 4 input field in the material inspector.
Field |
Type |
Description |
Default |
Vector 4 |
The default value of the Property. |
Color
Defines a Color value.
Data Type |
Modes |
Color |
Default, HDR |
Default
Displays an sRGB color field in the material inspector.
Field |
Type |
Description |
Default |
Vector 4 |
The default value of the Property. |
HDR
Displays an HDR color field in the material inspector.
Field |
Type |
Description |
Default |
Vector 4 |
The default value of the Property. |
Texture 2D
Defines a Texture 2D value. Displays an object field of type Texture in the material inspector.
Data Type |
Modes |
Texture |
White, Black, Grey, Bump |
Field |
Type |
Description |
Default |
Texture |
The default value of the Property. |
Texture 3D
Defines a Texture 3D value. Displays an object field of type Texture 3D in the material inspector.
Field |
Type |
Description |
Default |
Texture |
The default value of the Property. |
Texture 2D Array
Defines a Texture 2D Array value. Displays an object field of type Texture 2D Array in the material inspector.
Field |
Type |
Description |
Default |
Texture |
The default value of the Property. |
Cubemap
Defines a Cubemap value. Displays an object field of type Texture in the material inspector.
Field |
Type |
Description |
Default |
Cubemap |
The default value of the Property. |
Boolean
Defines a Boolean value. Displays a ToggleUI field in the material inspector. Note that internally to the shader this value is a Vector 1. The Boolean type in Shader Graph is merely for usability.
Field |
Type |
Description |
Default |
Boolean |
The default value of the Property. |