Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
GUI 界面
# GUI 界面 The GUI class is the interface for Unity's GUI with manual positioning. GUI 类是 Unity GUI 手工定位的接口。 ### Constructors**构造器** * [GUI](GUI.GUI.html) 构造 GUI ### Class Variables**类变量** * [skin](GUI.skin.html) The global skin to use 全局皮肤使用。 * [color](GUI.color.html) Global tinting color for the GUI. GUI 全局颜色 * [backgroundColor](GUI.backgroundColor.html) Global tinting color for all background elements rendered by the GUI. 全局由 GUI 渲染的所有背景元素颜色 * [contentColor](GUI.contentColor.html) Tinting color for all text rendered by the GUI. 由 GUI 渲染的所有文本颜色 * [changed](GUI.changed.html) Returns true if any controls changed the value of the input data. 返回 true,如果任何控件改变了输入数据的值。 * [enabled](GUI.enabled.html) Is the GUI enabled? GUI 启用了? * [matrix](GUI.matrix.html) The GUI transform matrix. GUI 变换矩阵。 * [tooltip](GUI.tooltip.html) The tooltip of the control the mouse is currently over, or which has keyboard focus. (Read Only). 控制鼠标当前通过对象的提升信息,或具有键盘焦点。 * [depth](GUI.depth.html) The sorting depth of the currently executing GUI behaviour. 当前执行的 GUI 行为深度排序。 ### Class Functions**类函数** * [Label](GUI.Label.html) Make a text or texture label on screen. 在屏幕上创建一个文本或纹理标签 * [DrawTexture](GUI.DrawTexture.html) Draw a texture within a rectangle. 在一个矩形中绘制纹理 * [Box](GUI.Box.html) Make a graphical box. 创建一个图形盒 * [Button](GUI.Button.html) Make a single press button. The user clicks them and something happens immediately. 创建一个按钮,用户点击的时候触发一些事件。 * [RepeatButton](GUI.RepeatButton.html) Make a button that is active as long as the user holds it down. 创建一个按钮,只要用户按着不放,将一直被激活 * [TextField](GUI.TextField.html) Make a single-line text field where the user can edit a string. 创建单行文本字段,用户可以编辑字符串 * [PasswordField](GUI.PasswordField.html) Make a text field where the user can enter a password. 创建密码文本字段,用户可以输入密码 * [TextArea](GUI.TextArea.html) Make a Multi-line text area where the user can edit a string. 创建多行文本区域,用户可以编辑字符串 * [SetNextControlName](GUI.SetNextControlName.html) Set the name of the next control. 设置下一个控件的名字 * [GetNameOfFocusedControl](GUI.GetNameOfFocusedControl.html) Get the name of named control that has focus. 获取有焦点被命名控件的名字 * [FocusControl](GUI.FocusControl.html) Move keyboard focus to a named control. 移动键盘焦点到被命名的控件。 * [Toggle](GUI.Toggle.html) Make an on/off toggle button. 创建 on/off 开关按钮。 * [Toolbar](GUI.Toolbar.html) Make a toolbar //创建工具栏 * [SelectionGrid](GUI.SelectionGrid.html) Make a grid of buttons.//创建按钮网格 * [HorizontalSlider](GUI.HorizontalSlider.html) A horizontal slider the user can drag to change a value between a min and a max. 创建水平滑动条,用户可以拖动滑块改变最小最大值。 * [VerticalSlider](GUI.VerticalSlider.html) A vertical slider the user can drag to change a value between a min and a max. 创建垂直滑动条,用户可以拖动滑块改变最小最大值。 * [HorizontalScrollbar](GUI.HorizontalScrollbar.html) Make a horizontal scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead. 创建水平滚动条,滚动条你可以用来滚动文档;大多数情况下,你会使用 scrollViews 代替。 * [VerticalScrollbar](GUI.VerticalScrollbar.html) Make a vertiical scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead. 创建垂直滚动条,滚动条你可以用来滚动文档;大多数情况下,你会使用 scrollViews 代替。 * [BeginGroup](GUI.BeginGroup.html) Begin a group. Must be matched with a call to EndGroup. 开始组,后面必须有一个 EndGroup 结束组相匹配 * [EndGroup](GUI.EndGroup.html) End a group. 结束组,和上面的 BeginGroup 开数组一对,相呼应。 * [BeginScrollView](GUI.BeginScrollView.html) Begin a scrolling view inside your GUI. 在你的 GUI 里开始滚动视图。 * [EndScrollView](GUI.EndScrollView.html) Ends a scrollview started with a call to BeginScrollView. 结束由 BeginScrollView 开始滚动的视图 * [ScrollTo](GUI.ScrollTo.html) Scrolls all enclosing scrollviews so they try to make position visible. 滚动 scrollviews 到 position 指定的位置。 * [Window](GUI.Window.html) Make a popup window.//创建一个弹出窗口。 * [DragWindow](GUI.DragWindow.html) Make a window draggable.// 创建一个可拖拽窗口。 * [BringWindowToFront](GUI.BringWindowToFront.html) Bring a specific window to front of the floating windows. 使特定的窗口到浮动窗口的前面。 * [BringWindowToBack](GUI.BringWindowToBack.html) Bring a specific window to back of the floating windows. 是特定窗口到浮动窗口的后面。 * [FocusWindow](GUI.FocusWindow.html) Make a window become the active window. 使一个窗口成为活动窗口。 * [UnfocusWindow](GUI.UnfocusWindow.html) Remove focus from all windows. 从所有窗口移除焦点。
da
2022年5月23日 13:38
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码