NGUI继承结构
2015-10-20 17:03:33 3 举报
NGUI类继承关系图
作者其他创作
大纲/内容
UIScrollBar
TweenRotation
TweenPosition
UI2DSprite
UITable
UIGeometry
1.存储顶点、UV、Color、相对父节点的位移数据。2.向Buffer写1中的数据。
contains
UIKeyBinding
TweenWidth
UIScrollView
UIPopupList
Behaviour
- enabled()
UIInput
TweenOrthoSize
TweenAlpha
UIBasicSprite
TweenVolume
EventTrigger
UISlider
UIButtonColor
UIDragDropRoot
UIKeyNavigation
UIWidgetContainer
UIDragDropItem
UITweener
GameObject
Inherit from Object or Component
+ CreatePrimitive()+ Find()\t+ FindGameObjectsWithTag()+ FindWithTag()- AddComponent()- SampleAnimation()- SetActive()
Object
+ Instantiate()+ Destroy()+ DestroyImmediate()+ DongtDestroyOnLoad()+ FindObjectOfType()+ FindObjectsOfType()- GetInstanceID()- ToString()
AnchorPoint
Transform target;替代了老版本的UIAnchorPoint;
UIRoot
1.屏幕自适应2.所有UIRect的root
UILabel
UIRect(抽象)
1.设置相对Target的Anchor(4个)。2.负责确定相对节点的适配关系。UIRect是一个代表UI矩形区的抽象类
TweenColor
UIProgressBar
UIGrid
UIToggle
UIDragObject
UIPanel范围内可以Drag
UILocalize
UIButton
TweenHeight
UIDrawCall
1.绘制UIWidget的Geometry。2.生成、rebuild Material。3.遍历时存储相同Material中顶点、法线、切线、uv、颜色数据(List)。
UISprite
在OnFill中将各种数据转换成相应的精灵类型所需要的数据fill到继承widget中的geometry中
TweenFOV
MonoBehaviour
all lifetime menber functions
- CancelInvoke()- Invoke()- InvokeRepeating()\t- IsInvoking()- StartCoroutine()- StopAllCoroutines\t()- StopCoroutine()
Component
Inherit from Object
- BroadcastMessage()- CompareTag()- GetComponent()\t- GetComponentInChildren()\t- GetComponentInParent()- GetComponents()- GetComponentsInChildren()\t- GetComponentsInParent()\t- SendMessage()- SendMessageUpwards()
TweenScale
UIDragDropContainer
UICameras
UITexture
UIWidget
1.所有被绘制的NGUI元素的基类。2.UI树3.提供OnFill的抽象
TweenTransform
has
UIPanel
0 条评论
下一页
为你推荐
查看更多