MaterialEditor.TextureProperty
Declaration
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);Параметры
| Параметр | Описание |
|---|---|
| метка | Метка для поля. |
| tooltip | Подсказка для поля. |
| scaleOffset | Рисовать масштаб / смещение. |
Описание
Нарисовать поле свойства для свойства текстурного шейдера.