Version: 2021.3
public static float currentViewWidth ;

描述

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