TexturePropertySingleLine
Draws a texture property on a single line.
Read time 1 minuteLast updated 21 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
TexturePropertySingleLine(GUIContent, MaterialProperty)
Draws a texture property on a single line.
public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp)
Parameters
The label to show for the texture property.
The texture property to draw.
Returns
Type | Description |
|---|---|
| Rect | The position and size of the line that the method drew. |
Remarks
The texture shows as a small thumbnail. Use this method to show a texture and up to two related properties compactly on one line.
TexturePropertySingleLine(GUIContent, MaterialProperty, MaterialProperty)
Draws a texture property and one other property on a single line.
public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1)
Parameters
The label to show for the texture property.
The texture property to draw.
A property to draw after the texture, on the same line.
Returns
Type | Description |
|---|---|
| Rect | The position and size of the line that the method drew. |
Remarks
The texture shows as a small thumbnail. Use this method to show a texture and up to two related properties compactly on one line.
TexturePropertySingleLine(GUIContent, MaterialProperty, MaterialProperty, MaterialProperty)
Draws a texture property and two other properties on a single line.
public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, MaterialProperty extraProperty2)
Parameters
The label to show for the texture property.
The texture property to draw.
A property to draw after the texture, on the same line.
A second property to draw after , on the same line.
extraProperty1Returns
Type | Description |
|---|---|
| Rect | The position and size of the line that the method drew. |
Remarks
The texture shows as a small thumbnail. Use this method to show a texture and up to two related properties compactly on one line.