Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

MaterialEditor.TexturePropertySingleLine

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp);

Parameters

Parameter Description
label The label to show for the texture property.
textureProp The texture property to draw.

Returns

Rect The position and size of the line that the method drew.

Description

Draws a texture property on a single line.

The texture shows as a small thumbnail. Use this method to show a texture and up to two related properties compactly on one line.


Declaration

public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1);

Parameters

Parameter Description
label The label to show for the texture property.
textureProp The texture property to draw.
extraProperty1 A property to draw after the texture, on the same line.

Returns

Rect The position and size of the line that the method drew.

Description

Draws a texture property and one other property on a single line.

The texture shows as a small thumbnail. Use this method to show a texture and up to two related properties compactly on one line.


Declaration

public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, MaterialProperty extraProperty2);

Parameters

Parameter Description
label The label to show for the texture property.
textureProp The texture property to draw.
extraProperty1 A property to draw after the texture, on the same line.
extraProperty2 A second property to draw after extraProperty1, on the same line.

Returns

Rect The position and size of the line that the method drew.

Description

Draws a texture property and two other properties on a single line.

The texture shows as a small thumbnail. Use this method to show a texture and up to two related properties compactly on one line.