TexturePropertyTwoLines(GUIContent, MaterialProperty, MaterialProperty, GUIContent, MaterialProperty)
Method for showing a compact layout of properties.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public Rect TexturePropertyTwoLines(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, GUIContent label2, MaterialProperty extraProperty2)
Parameters
The label used for the texture property.
The texture property.
First extra property inlined after the texture property.
Label for the second extra property (on a new line and indented).
Second property on a new line below the texture.
Returns
Type | Description |
|---|---|
| Rect | Returns the Rect used. |
Remarks
The texture is shown using the mini thumbnail that fits on a single line. The first extra property is shown inlined after the texture property and the second extra property is shown below on a new line with it's own label. Additional Resources: MaterialEditor.TexturePropertySingleLine, ShaderGUI.