public static void EndHorizontal ();

Description

Закрывает группу, начатую с BeginHorizontal.

See Also: EditorGUILayout.BeginHorizontal


Horizontal Compound group.

using UnityEngine;
using UnityEditor;

// Create a Horizontal Compound Button

public class EndHorizontalCS : EditorWindow { [MenuItem("Examples/Begin-End Horizontal usage")] static void Init() { EditorWindow window = GetWindow(typeof(EndHorizontalCS)); window.Show(); }

void OnGUI() { Rect r = EditorGUILayout.BeginHorizontal("Button"); if (GUI.Button(r, GUIContent.none)) Debug.Log("I got pressed"); GUILayout.Label("I'm inside the button"); GUILayout.Label("So am I"); EditorGUILayout.EndHorizontal(); } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961