# VectorProperty

> Draw a property field for a vector shader property.

## Definition

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

## VectorProperty(MaterialProperty, string)

Draw a property field for a vector shader property.

```csharp
public Vector4 VectorProperty(MaterialProperty prop, string label)
```

### Parameters

**** (\[MaterialProperty]\(/engine/6000.0/script-reference/unityeditor/materialproperty)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) |             |

## VectorProperty(MaterialProperty, GUIContent)

Draw a property field for a vector shader property.

```csharp
public Vector4 VectorProperty(MaterialProperty prop, GUIContent label)
```

### Parameters

**** (\[MaterialProperty]\(/engine/6000.0/script-reference/unityeditor/materialproperty)): **** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): Label for the field.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) |             |

## VectorProperty(Rect, MaterialProperty, string)

Draw a property field for a vector shader property.

```csharp
public Vector4 VectorProperty(Rect position, MaterialProperty prop, string label)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[MaterialProperty]\(/engine/6000.0/script-reference/unityeditor/materialproperty)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) |             |

## VectorProperty(Rect, MaterialProperty, GUIContent)

Draw a property field for a vector shader property.

```csharp
public Vector4 VectorProperty(Rect position, MaterialProperty prop, GUIContent label)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[MaterialProperty]\(/engine/6000.0/script-reference/unityeditor/materialproperty)): **** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): Label for the field.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) |             |

## VectorProperty(string, string)

Draw a property field for a vector shader property.

> **Warning:**
>
> **Deprecated.** Use VectorProperty with MaterialProperty instead.

```csharp
public Vector4 VectorProperty(string propertyName, string label)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) |             |
