Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

MaterialEditor.TexturePropertySingleLine

Предложить изменения

Успех!

Благодарим вас за то, что вы помогаете нам улучшить качество документации по Unity. Однако, мы не можем принять любой перевод. Мы проверяем каждый предложенный вами вариант перевода и принимаем его только если он соответствует оригиналу.

Закрыть

Ошибка внесения изменений

По определённым причинам предложенный вами перевод не может быть принят. Пожалуйста <a>попробуйте снова</a> через пару минут. И выражаем вам свою благодарность за то, что вы уделяете время, чтобы улучшить документацию по Unity.

Закрыть

Отменить

Руководство
public function TexturePropertySingleLine(label: GUIContent, textureProp: MaterialProperty): Rect;
public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp);
public function TexturePropertySingleLine(label: GUIContent, textureProp: MaterialProperty, extraProperty1: MaterialProperty): Rect;
public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1);
public function TexturePropertySingleLine(label: GUIContent, textureProp: MaterialProperty, extraProperty1: MaterialProperty, extraProperty2: MaterialProperty): Rect;
public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, MaterialProperty extraProperty2);

Параметры

label The label used for the texture property.
textureProp The texture property.
extraProperty1 First optional property inlined after the texture property.
extraProperty2 Second optional property inlined after the extraProperty1.

Возврат значений

Rect Returns the Rect used.

Описание

Method for showing a texture property control with additional inlined properites.

This method can be used if multiple controls is wanted on the same line. The texture is shown using the mini thumbnail. Usefull for compact representation of properties of up to three material properties. See Also: TexturePropertyTwoLines, ShaderGUI.