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.