public static void EndHorizontal ();

描述

闭合以 BeginHorizontal 开始的组。


Horizontal Layout.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnGUI() { GUILayout.BeginHorizontal("box"); GUILayout.Button("I'm the first button"); GUILayout.Button("I'm to the right"); GUILayout.EndHorizontal(); } }