UnityEngine.UI系统基础类架构图
2016-12-11 16:26:35 0 举报
UnityEngine.UI是Unity游戏开发引擎中的一个用于创建用户界面的系统。它提供了一套丰富的组件和工具,使开发者能够轻松地创建交互式的、美观的用户界面。UnityEngine.UI系统基于事件驱动模型,允许开发者通过处理各种输入事件(如鼠标点击、键盘按键等)来响应用户操作。此外,UnityEngine.UI还支持多种平台和分辨率,使得开发者可以轻松地为不同的设备和屏幕尺寸优化其界面。总之,UnityEngine.UI是一个非常强大且灵活的用户界面解决方案,适用于各种类型的游戏和应用开发。
作者其他创作
大纲/内容
Image
+ overridesprite : Sprite+ sprite : Sprite+ fillAmount : float
Selectable
+ interactable : bool+ targetGraphic : Graphic
+ OnSelect(BaseEventData)+ Select()+ OnPointerXXX(BaseEventData)
VerticalLayout
Button
+ onClick : delegate
HorizontalLayout
UIBehaviour
1. print 静态函数2. IsActive3. IsDestory4. protcted OnCanvasGroupChanged5. OnRectTransformDimensionsChange
MaskableGraphic
+ maskable : bool+ material
+ ParentMaskStateChanged
LayoutGroup
+ childAlignment:TextAnchor+ padding : RectOffSet
+ operation1(params):returnType- operation2(params)- operation3()
ToggleGroup
+ allowSwitchOff
+ NotifyToggleOn(Toggle)+ ActiveToggles()- Un/RegisterToggle(Toggle)
RawImage
+ texture : Texture+ uvRect : Rect
HorizontalOrVerticalLayoutGroup
+ childForceExpandHeight+ childForceExpandHeight+ spacing
Graphic
+ mainTexture+ color+ canvas+ canvasRenderer+ material+ rectTransform
InputField
+ onEndEdit : delegate+ onValidateInput : delegate+ on ValueChanged : delegate+ text : string+ placeHolder : Graphic
Mask
+ rectTransform+ showMaskGraphic : bool
LayoutElement
+ ignoreLayout : bool+ minWidth/Height+ preferredWidth/Height+ flexibleWidth/Height
Created By 王选易微博: http://weibo.com/wangxuanyihaha
GridLayout
+ cellSize : Vector2+ startAxis+ startCorner+ spacing
Text
+ text : string
ScrollRect
+ content : RectTransform+ horizontalNormalizedPosition : float+ verticalNormalizedPosition : float+ onValueChanged : delegate
+ OnScroll
Toggle
+ onValueChanged(bool)
MonoBehaviour
0 条评论
下一页