GUIStyle.stretchHeight

Switch to Manual
public bool stretchHeight ;

Description

是否可以垂直拉伸该样式的 GUI 元素来改善布局效果?

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnGUI() { GUI.skin.button.stretchHeight = true; } }