Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GUI.ToolbarButtonSize

Determines how toolbar button size is calculated.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
public enum GUI.ToolbarButtonSize

Fields

Value

Description

FitToContentsThe width of each toolbar button is calculated based on the width of its content.
FixedCalculates the button size by dividing the available width by the number of buttons. The minimum size is the maximum content width.