インデント付きでGUI.Buttonを表示する
GUILayout.Button
は GUILayout.indentLevel
によるインデントが効かないため、下記のメソッドでインデント対応をする。
bool IndentedButton(string content) => IndentedButton(new GUIContent(content)); bool IndentedButton(GUIContent content) => GUI.Button( EditorGUI.IndentedRect(EditorGUILayout.GetControlRect()), content);