# SetIconSize(Vector2)

> Set icons rendered as part of GUIContent to be rendered at a specific size.

## Definition

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

```csharp
public static void SetIconSize(Vector2 size)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)):&#x20;

### Remarks

Set the size to [Vector2.zero](/engine/6000.7/script-reference/unityengine/vector2/zero.md) to use the default behaviour where the size is determined by the available space.

Additional Resources: [EditorGUIUtility.GetIconSize](/engine/6000.7/script-reference/unityeditor/editorguiutility/geticonsize.md).
