21. UIが複雑になるほど増えていくコード量
var labelRect = new Rect(0, 0, 100, 50);
var largeFontStyle = new GUIStyle(EditorStyles.label);
largeFontStyle.fontSize = 20;
EditorGUI.LabelField(labelRect, "ラベル", largeFontStyle);
var buttonRect = new Rect(0, labelRect.height, 100, 50);
if (GUI.Button(buttonRect, "ボタン"))
{
}
大きめのラベルとボタンを追加するだけでもこのコード量