当前位置:网站首页>Uibehavior, a comprehensive exploration of ugui source code
Uibehavior, a comprehensive exploration of ugui source code
2022-07-06 07:50:00 【Walking on the top of the clouds】
UIBehaviour For all UI The base class of the component , Inherited from MonoBehavior, Have Unity The same life cycle .
UI Components are inherited directly or indirectly UIBehaviour This abstract class .
except Awake,OnEnable,Start,OnDisable,OnDestroy Outside , Contains some and ui Change related virtual methods
// When related RectTransform Call when the dimension changes
protected virtual void OnRectTransformDimensionsChange()
{}
// Call before changing the parent
protected virtual void OnBeforeTransformParentChanged()
{}
// When the parent is changed, call
protected virtual void OnTransformParentChanged()
{}
// Called when animation properties are applied
protected virtual void OnDidApplyAnimationProperties()
{}
// When the canvas group is changed, call
protected virtual void OnCanvasGroupChanged()
{}
// Call when the canvas state changes
protected virtual void OnCanvasHierarchyChanged()
{}
//
public bool IsDestroyed()
{
return this == null;
}
The parent class description of each component :
Text-->MaskableGraphic-->Graphic-->UIBehaviour
Image-->MaskableGraphic-->Graphic-->UIBehaviour
RawImage-->MaskableGraphic-->Graphic-->UIBehaviour
Button-->Selectable-->UIBehaviour
Toggle-->Selectable-->UIBehaviour
Slider-->Selectable-->UIBehaviour
ScrollBar-->Selectable-->UIBehaviour
DropDown-->Selectable-->UIBehaviour
InputFiled-->Selectable-->UIBehaviour
EventSystem-->UIBehaviour
special
ScrollView It's made up of several components , The key ScrollRect-->UIBehaviour
Panel Yes, built-in ui picture Background Of Image
边栏推荐
- Basics of reptile - Scratch reptile
- 智能终端设备加密防护的意义和措施
- onie支持pice硬盘
- 洛谷P1836 数页码 题解
- Qualitative risk analysis of Oracle project management system
- Launch APS system to break the problem of decoupling material procurement plan from production practice
- TS 体操 &(交叉运算) 和 接口的继承的区别
- 超级浏览器是指纹浏览器吗?怎样选择一款好的超级浏览器?
- 1015 reversible primes (20 points) prime d-ary
- [dictionary tree] [trie] p3879 [tjoi2010] reading comprehension
猜你喜欢
[非线性控制理论]9_非线性控制理论串讲
Esrally domestic installation and use pit avoidance Guide - the latest in the whole network
. Net 6 learning notes: what is NET Core
Fundamentals of C language 9: Functions
If Jerry's Bluetooth device wants to send data to the mobile phone, the mobile phone needs to open the notify channel first [article]
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Ble of Jerry [chapter]
Google可能在春节后回归中国市场。
[CF Gym101196-I] Waif Until Dark 网络最大流
Force buckle day31
随机推荐
Description of octomap averagenodecolor function
How to prevent Association in cross-border e-commerce multi account operations?
数据治理:主数据的3特征、4超越和3二八原则
Google may return to the Chinese market after the Spring Festival.
Opencv learning notes 9 -- background modeling + optical flow estimation
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Related operations of Excel
Fundamentals of C language 9: Functions
Position() function in XPath uses
TS 类型体操 之 循环中的键值判断,as 关键字使用
Data governance: 3 characteristics, 4 transcendence and 3 28 principles of master data
[dictionary tree] [trie] p3879 [tjoi2010] reading comprehension
数字经济时代,如何保障安全?
. Net 6 learning notes: what is NET Core
数据治理:元数据管理篇
Scala语言学习-08-抽象类
Three no resumes in the software testing industry. What does the enterprise use to recruit you? Shichendahai's resume
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Mex related learning
数据治理:微服务架构下的数据治理