Skip to main content
Version: 5.x

Nodes > Inputs > Parameters > Texture 2D Object Parameter

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

NameTypeDescription
Texturetex2DTexture asset that can be used for sampling
Texture SizefloatDimensions of the texture (width, height), in pixels
Pixel SizefloatWidth and height of a pixel (1/texture size)

Properties

NameTypeDescription
TitlestringTitle used for this parameter when viewing the Material in the Inspector
Script NamestringVariable name scripts can use to access this parameter through the Material's mainPass
View Space Depth MapboolEnabling this when sampling a depth buffer will return a depth value in view space. When unchecked, the depth value is returned in screen space.
Expose Size OutputsboolIf enabled, the Texture Size and Pixel Size output ports will be exposed
GroupstringIf not empty, specifies the parameter group this parameter is shown in
Sort IndexintSpecifies the order this should be listed relative to other parameters
TooltipstringTooltip message shown on mouse hover
Was this page helpful?
Yes
No