UnityEngine.UI系统基础类架构图
2017-03-09 01:02:08 0 举报
UnityEngine.UI系统是Unity游戏引擎中用于创建用户界面的组件库。它提供了一套丰富的UI元素和交互功能,使开发者能够轻松地构建出各种类型的游戏界面。该系统基于事件驱动模型,通过监听用户的输入操作来触发相应的事件处理函数。其中,Canvas是UI元素的容器,Panel是布局管理器,Image、Text、Button等是常用的UI元素。此外,该系统还提供了一些高级功能,如动画效果、主题切换等。总之,UnityEngine.UI系统是一个功能强大、易于使用的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 条评论
下一页