お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseEditorGUI.TextField や EditorGUI.Popup のような1行でコントロールされるGUIの高さを取得します
複数行に対応したカスタムクラスのためのコントロールなど、自身で複数行に対応したコントロールを作成するとき、 EditorGUIUtility.singleLineHeight を複数行に対応させた EditorGUILayout.GetControlRect を使用して高さの値を渡すことが出来ます。これは特定のピクセル値をハードコードすることなく、推奨できる対応方法です See Also: EditorGUILayout.GetControlRect.