# TexturePropertyTwoLines(GUIContent, MaterialProperty, MaterialProperty, GUIContent, MaterialProperty)

> Method for showing a compact layout of properties.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public Rect TexturePropertyTwoLines(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, GUIContent label2, MaterialProperty extraProperty2)
```

### Parameters

**** (\[GUIContent]\(/engine/6000.7/script-reference/unityengine/guicontent)): The label used for the texture property.**** (\[MaterialProperty]\(/engine/6000.7/script-reference/unityeditor/materialproperty)): The texture property.**** (\[MaterialProperty]\(/engine/6000.7/script-reference/unityeditor/materialproperty)): First extra property inlined after the texture property.**** (\[GUIContent]\(/engine/6000.7/script-reference/unityengine/guicontent)): Label for the second extra property (on a new line and indented).**** (\[MaterialProperty]\(/engine/6000.7/script-reference/unityeditor/materialproperty)): Second property on a new line below the texture.

### Returns

| Type                                                        | Description            |
| ----------------------------------------------------------- | ---------------------- |
| [Rect](/engine/6000.7/script-reference/unityengine/rect.md) | 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](/engine/6000.7/script-reference/unityeditor/materialeditor/texturepropertysingleline.md),  [ShaderGUI](/engine/6000.7/script-reference/unityeditor/shadergui.md).
