Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

GUIStyle.stretchHeight

Switch to Manual
public bool stretchHeight;

Description

Can GUI elements of this style be stretched vertically for better layout?

using UnityEngine;

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

Did you find this page useful? Please give it a rating: