Nodes > Inputs > Parameters > Texture 2D Object Parameter

Exposes a texture object parameter on the material. This value can be modified through the Inspector panel or by script at runtime.
Outputs
| Name | Type | Description |
|---|---|---|
| Texture | tex2D | Texture asset that can be used for sampling |
| Texture Size | float | Dimensions of the texture (width, height), in pixels |
| Pixel Size | float | Width and height of a pixel (1/texture size) |
Properties
| Name | Type | Description |
|---|---|---|
| Title | string | Title used for this parameter when viewing the Material in the Inspector |
| Script Name | string | Variable name scripts can use to access this parameter through the Material's mainPass |
| Depth Map | bool | Enabling this option will treat the texture as a depth texture |
| Expose Size Outputs | bool | If enabled, the Texture Size and Pixel Size output ports will be exposed |
| Group | string | If not empty, specifies the parameter group this parameter is shown in |
| Sort Index | int | Specifies the order this should be listed relative to other parameters |
| Tooltip | string | Tooltip message shown on mouse hover |
Was this page helpful?