# TexturePropertySingleLine

> Draws a texture property on a single line.

## Definition

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

## TexturePropertySingleLine(GUIContent, MaterialProperty)

Draws a texture property on a single line.

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

### Parameters

**** (\[GUIContent]\(/engine/7000.0/script-reference/unityengine/guicontent)): The label to show for the texture property.**** (\[MaterialProperty]\(/engine/7000.0/script-reference/unityeditor/materialproperty)): The texture property to draw.

### Returns

| Type                                                        | Description                                             |
| ----------------------------------------------------------- | ------------------------------------------------------- |
| [Rect](/engine/7000.0/script-reference/unityengine/rect.md) | 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.

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

### Parameters

**** (\[GUIContent]\(/engine/7000.0/script-reference/unityengine/guicontent)): The label to show for the texture property.**** (\[MaterialProperty]\(/engine/7000.0/script-reference/unityeditor/materialproperty)): The texture property to draw.**** (\[MaterialProperty]\(/engine/7000.0/script-reference/unityeditor/materialproperty)): A property to draw after the texture, on the same line.

### Returns

| Type                                                        | Description                                             |
| ----------------------------------------------------------- | ------------------------------------------------------- |
| [Rect](/engine/7000.0/script-reference/unityengine/rect.md) | 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.

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

### Parameters

**** (\[GUIContent]\(/engine/7000.0/script-reference/unityengine/guicontent)): The label to show for the texture property.**** (\[MaterialProperty]\(/engine/7000.0/script-reference/unityeditor/materialproperty)): The texture property to draw.**** (\[MaterialProperty]\(/engine/7000.0/script-reference/unityeditor/materialproperty)): A property to draw after the texture, on the same line.**** (\[MaterialProperty]\(/engine/7000.0/script-reference/unityeditor/materialproperty)): A second property to draw after `extraProperty1`, on the same line.

### Returns

| Type                                                        | Description                                             |
| ----------------------------------------------------------- | ------------------------------------------------------- |
| [Rect](/engine/7000.0/script-reference/unityengine/rect.md) | 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.
