Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextureProperty

Draw a property field for a texture shader property.
Read time 2 minutesLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

TextureProperty(MaterialProperty, string)

Draw a property field for a texture shader property.
public Texture TextureProperty(MaterialProperty prop, string label)

Parameters


label

Label for the field.

Returns

Type

Description

Texture

TextureProperty(MaterialProperty, string, bool)

Draw a property field for a texture shader property.
public Texture TextureProperty(MaterialProperty prop, string label, bool scaleOffset)

Parameters


label

Label for the field.

scaleOffset

Draw scale / offset.

Returns

Type

Description

Texture

TextureProperty(Rect, MaterialProperty, string)

Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, string label)

Parameters

position



label

Label for the field.

Returns

Type

Description

Texture

TextureProperty(Rect, MaterialProperty, GUIContent)

Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, GUIContent label)

Parameters

position



Label for the field.

Returns

Type

Description

Texture

TextureProperty(Rect, MaterialProperty, string, bool)

Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, string label, bool scaleOffset)

Parameters

position



label

Label for the field.

scaleOffset

Draw scale / offset.

Returns

Type

Description

Texture

TextureProperty(Rect, MaterialProperty, string, string, bool)

Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, string label, string tooltip, bool scaleOffset)

Parameters

position



label

Label for the field.

tooltip

Tooltip for the field.

scaleOffset

Draw scale / offset.

Returns

Type

Description

Texture

TextureProperty(Rect, MaterialProperty, GUIContent, bool)

Draw a property field for a texture shader property.
public Texture TextureProperty(Rect position, MaterialProperty prop, GUIContent label, bool scaleOffset)

Parameters

position



Label for the field.

scaleOffset

Draw scale / offset.

Returns

Type

Description

Texture

TextureProperty(string, string, ShaderPropertyTexDim)

Draw a property field for a texture shader property.
Warning
Removed. Use TextureProperty with MaterialProperty instead.
public Texture TextureProperty(string propertyName, string label, ShaderUtil.ShaderPropertyTexDim texDim)

Parameters

propertyName


label

Label for the field.

texDim

ShaderPropertyTexDim

Returns

Type

Description

Texture

TextureProperty(string, string, ShaderPropertyTexDim, bool)

Draw a property field for a texture shader property.
Warning
Removed. Use TextureProperty with MaterialProperty instead.
public Texture TextureProperty(string propertyName, string label, ShaderUtil.ShaderPropertyTexDim texDim, bool scaleOffset)

Parameters

propertyName


label

Label for the field.

texDim

ShaderPropertyTexDim

scaleOffset

Draw scale / offset.

Returns

Type

Description

Texture