Version: 2018.3 (switch to 2019.1)
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: