This version of Unity is unsupported.

MaterialEditor.TextureProperty

Declaration

public Texture TextureProperty(MaterialProperty prop, string label);

Declaration

public Texture TextureProperty(MaterialProperty prop, string label, bool scaleOffset);

Declaration

public Texture TextureProperty(Rect position, MaterialProperty prop, string label);

Declaration

public Texture TextureProperty(Rect position, MaterialProperty prop, string label, bool scaleOffset);

Declaration

public Texture TextureProperty(Rect position, MaterialProperty prop, string label, string tooltip, bool scaleOffset);

Parameters

label Label for the field.
scaleOffset Draw scale / offset.

Description

Draw a property field for a texture shader property.