# DrawSelectionFrame(int, Vector3, Quaternion, float, EventType)

> Creates a square at a position and rotation with a specified size.

## Definition

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

```csharp
public static void DrawSelectionFrame(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The control ID for the handle.**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The position of the handle in the space of [Handles.matrix](/engine/6000.7/script-reference/unityeditor/handles/matrix.md).**** (\[Quaternion]\(/engine/6000.7/script-reference/unityengine/quaternion)): The rotation of the handle in the space of [Handles.matrix](/engine/6000.7/script-reference/unityeditor/handles/matrix.md).**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The size of the handle in the space of [Handles.matrix](/engine/6000.7/script-reference/unityeditor/handles/matrix.md). Use [HandleUtility.GetHandleSize](/engine/6000.7/script-reference/unityeditor/handleutility/gethandlesize.md) if you want a constant screen space size.**** (\[EventType]\(/engine/6000.7/script-reference/unityengine/eventtype)): The type of event for the handle to act on. You can only use this function with [EventType.Repaint](/engine/6000.7/script-reference/unityengine/eventtype/repaint.md).
