# DrawWireCube(Vector3, Vector3)

> Draw a wireframe box with center and size.

## Definition

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

```csharp
public static void DrawWireCube(Vector3 center, Vector3 size)
```

### Parameters

**** (\[Vector3]\(/engine/6000.0/script-reference/unityengine/vector3)): **** (\[Vector3]\(/engine/6000.0/script-reference/unityengine/vector3)):&#x20;

### Examples

```csharp
using UnityEditor;
using UnityEngine;
using System.Collections;

//this class should exist somewhere in your project
public class WireCubeExample : MonoBehaviour
{
    public Vector3 size;

    // ...other code...
}
```

```csharp
// Editor script. This would go into an Editor directory.
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(WireCubeExample))]
public class WireBoxExample : Editor
{
    void OnSceneGUI()
    {
        Handles.color = Color.yellow;
        WireCubeExample myObj = (WireCubeExample)target;
        Handles.DrawWireCube(myObj.transform.position, myObj.size);
    }
}
```
