文档

Unity Engine

Unity Engine

GUI.ToolbarButtonSize

Determines how toolbar button size is calculated.
阅读时间1 分钟最后更新于 1 个月前

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.