当前位置:网站首页>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
边栏推荐
- Database basic commands
- 洛谷P4127 [AHOI2009]同类分布 题解
- Esrally domestic installation and use pit avoidance Guide - the latest in the whole network
- Ble of Jerry [chapter]
- The difference between TS Gymnastics (cross operation) and interface inheritance
- Jerry's general penetration test - do data transmission with app Communication [article]
- Parameter self-tuning of relay feedback PID controller
- QT color is converted to string and uint
- TS 类型体操 之 循环中的键值判断,as 关键字使用
- TS类型体操 之 字符串的妙用
猜你喜欢

Ali's redis interview question is too difficult, isn't it? I was pressed on the ground and rubbed
![If Jerry needs to send a large package, he needs to modify the MTU on the mobile terminal [article]](/img/57/12a97ab3d2dabfaf06bbe1788450cf.png)
If Jerry needs to send a large package, he needs to modify the MTU on the mobile terminal [article]

Summary of Digital IC design written examination questions (I)
![[1. Delphi foundation] 1 Introduction to Delphi Programming](/img/14/272f7b537eedb0267a795dba78020d.jpg)
[1. Delphi foundation] 1 Introduction to Delphi Programming

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

Sharing of source code anti disclosure scheme under burning scenario

Esrally domestic installation and use pit avoidance Guide - the latest in the whole network

解决方案:智慧工地智能巡檢方案視頻監控系統

octomap averageNodeColor函数说明

In the era of digital economy, how to ensure security?
随机推荐
Jerry's ad series MIDI function description [chapter]
[redis] Introduction to NoSQL database and redis
Scala language learning-08-abstract classes
洛谷P4127 [AHOI2009]同类分布 题解
Typescript interface and the use of generics
Launch APS system to break the problem of decoupling material procurement plan from production practice
实现精细化生产, MES、APS、ERP必不可少
Opencv learning notes 9 -- background modeling + optical flow estimation
861. Score after flipping the matrix
Data governance: data quality
Entity class design for calculating age based on birthday
Methods for JS object to obtain attributes (. And [] methods)
[count] [combined number] value series
P3047 [USACO12FEB]Nearby Cows G(树形dp)
Three treasures of leeks and Chinese men's football team
Database addition, deletion, modification and query
链表面试题(图文详解)
Position() function in XPath uses
TS 体操 &(交叉运算) 和 接口的继承的区别
Ble of Jerry [chapter]