Version: 2022.2
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.