是否有适用于 Unity 附带的所有自定义 GUI 样式的资源?

Ada*_*nan 1 unity-game-engine

在其他一些编辑器窗口脚本中,我看到 GUI 样式,例如"OL Title""OL Minus"。我想要一个资源来显示我们可以访问的所有样式(如果它描述/显示了它们的样子,那就更好了)。我假设它存在于某个地方,否则这些脚本的开发人员如何知道它们存在?我只是在任何地方都找不到它。

Muk*_*ini 5

以下是如何使用 GUIStyle 构造函数 -

GUIStyle mystyle = new GUIStyle("some style element");
Run Code Online (Sandbox Code Playgroud)

以及风格元素列表 -

"ToolbarButton"
"CN Box"
"Button"
"CN EntryBackEven"
"Toolbar"
"CN EntryInfo"
"CN EntryBackodd"
"CN StatusWarn"
"CN StatusError"
"Box"
"CN StatusInfo"
"CN CountBadge"
"MiniButtonMiddle"
"MiniButton"
"MiniButtonLeft"
"ErrorStyle"
"MiniButtonRight"
"LogStyle"
"CN Message"
"WarningStyle"
"MessageStyle"
"EvenBackground"
"OddBackground"
"StatusError"
"ObjectPickerResultsGrid"
"PR Label"
"ProjectBrowserGridLabel"
"ProjectBrowserHeaderBgMiddle"
"ProjectBrowserSubAssetExpandBtn"
"toolbarDropDown"
"ToolbarSeachTextField"
"SearchCancelButtonEmpty"
"ToolbarSeachCancelButton"
"SearchTextField"
"ObjectPickerBackground"
"ObjectPickerPreviewBackground"
"Foldout"
"ProjectBrowserHeaderBgTop"
"NotificationBackground"
"ObjectPickerToolbar"
"PR Ping"
"PR TextField"
"ProjectBrowserIconDropShadow"
"ProjectBrowserPreviewBg"
"CN EntryError"
"ProjectBrowserTextureIconDropShadow"
"ProjectBrowserSubAssetBg"
"ProjectBrowserSubAssetBgOpenEnded"
"WhiteLabel"
"CountBadge"
"StatusWarn"
"ProjectBrowserSubAssetBgDivider"
"In BigTitle"
"StatusLog"
"WhiteMiniLabel"
"LargeLabel"
"BoldLabel"
"ColorPickerBox"
"ProjectBrowserSubAssetBgCloseEnded"
"ProjectBrowserSubAssetBgMiddle"
"WordWrappedLabel"
"CN EntryWarn"
"MiniBoldLabel"
"MiniTextField"
"WhiteLargeLabel"
"WhiteBoldLabel"
"miniButton"
"miniButtonLeft"
"WordWrappedMiniLabel"
"miniButtonRight"
"Radio"
"toolbarPopup"
"toolbarTextField"
"miniButtonMid"
"ToolbarSeachCancelButtonEmpty"
"ToolbarSeachTextFieldPopup"
"SearchCancelButton"
"HelpBox"
"AssetLabel Partial"
"MinMaxHorizontalSliderThumb"
"AssetLabel Icon"
"ProjectBrowserIconAreaBg"
"selectionRect"
"AssetLabel"
"Label"
"BoldLabel"
"DropDownButton"
"MiniLabel"
"FoldoutPreDrop"
"ProgressBarBack"
"ProgressBarBar"
"ProgressBarText"
"Tooltip"
"IN Title"
"MiniBoldLabel"
"BoldToggle"
"textField"
"IN TitleText"
"Foldout"
"NotificationText"
"ControlLabel"
"ToggleMixed"
"ObjectField"
"ObjectFieldThumb"
"MiniPopup"
"ObjectFieldMiniThumb"
"TextFieldDropDownText"
"Toggle"
"ColorField"
"TextFieldDropDown"
Run Code Online (Sandbox Code Playgroud)

该列表可能不完整。如果您发现任何缺少的样式元素,请添加。