UnityEngine.UI系统基础类架构图
2017-01-16 19:24:49 0 举报
UnityEngine.UI系统是Unity游戏引擎中用于处理用户界面的组件和功能的集合。它提供了一套丰富的工具和类,使开发人员能够创建交互性强、美观且易于使用的界面。该系统的核心是UI元素,它们可以是按钮、文本框、滑块等,通过这些元素,用户可以与游戏进行互动。UI系统还包括布局管理器,用于控制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 条评论
下一页