# TexturePropertySingleLine

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

## Definition

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

## TexturePropertySingleLine(GUIContent, MaterialProperty)

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

```csharp
public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp)
```

### 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.

### Returns

| Type                                                        | Description            |
| ----------------------------------------------------------- | ---------------------- |
| [Rect](/engine/6000.7/script-reference/unityengine/rect.md) | Returns the Rect used. |

### Remarks

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. Additional Resources: [MaterialEditor.TexturePropertyTwoLines](/engine/6000.7/script-reference/unityeditor/materialeditor/texturepropertytwolines.md), [ShaderGUI](/engine/6000.7/script-reference/unityeditor/shadergui.md).

## TexturePropertySingleLine(GUIContent, MaterialProperty, MaterialProperty)

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

```csharp
public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1)
```

### 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 optional property inlined after the texture property.

### Returns

| Type                                                        | Description            |
| ----------------------------------------------------------- | ---------------------- |
| [Rect](/engine/6000.7/script-reference/unityengine/rect.md) | Returns the Rect used. |

### Remarks

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. Additional Resources: [MaterialEditor.TexturePropertyTwoLines](/engine/6000.7/script-reference/unityeditor/materialeditor/texturepropertytwolines.md), [ShaderGUI](/engine/6000.7/script-reference/unityeditor/shadergui.md).

## TexturePropertySingleLine(GUIContent, MaterialProperty, MaterialProperty, MaterialProperty)

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

```csharp
public Rect TexturePropertySingleLine(GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, 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 optional property inlined after the texture property.**** (\[MaterialProperty]\(/engine/6000.7/script-reference/unityeditor/materialproperty)): Second optional property inlined after the extraProperty1.

### Returns

| Type                                                        | Description            |
| ----------------------------------------------------------- | ---------------------- |
| [Rect](/engine/6000.7/script-reference/unityengine/rect.md) | Returns the Rect used. |

### Remarks

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. Additional Resources: [MaterialEditor.TexturePropertyTwoLines](/engine/6000.7/script-reference/unityeditor/materialeditor/texturepropertytwolines.md), [ShaderGUI](/engine/6000.7/script-reference/unityeditor/shadergui.md).
