MaterialEditor.TextureProperty

Unity · Версия 2020.3 LTS · Scripting · MaterialEditor

MaterialEditor.TextureProperty

Объявление

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, string label, bool scaleOffset);

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

Параметры

label Метка для поля.
scaleOffset Нарисуйте масштаб/смещение.

Описание

Рисует поле свойства для свойства шейдера текстуры.

Обновлено 17 ноября 2026 г.