# currentViewWidth

> The width of the GUI area for the current EditorWindow or other view. This Property should only be accessed within an OnGUI call.

## Definition

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

```csharp
public static float currentViewWidth { get; }
```
