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

参数

label 字段的标签。
tooltip Tooltip for the field.
scaleOffset 绘制缩放比例/偏移。

描述

为纹理着色器属性绘制一个属性字段。