当前位置:网站首页>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
边栏推荐
- Ble of Jerry [chapter]
- C # create database connection object SQLite database
- js對象獲取屬性的方法(.和[]方式)
- Generator Foundation
- Pre knowledge reserve of TS type gymnastics to become an excellent TS gymnastics master
- TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比
- Ble of Jerry [chapter]
- Fundamentals of C language 9: Functions
- opencv学习笔记八--答题卡识别
- How to prevent Association in cross-border e-commerce multi account operations?
猜你喜欢

leecode-C語言實現-15. 三數之和------思路待改進版

Linked list interview questions (Graphic explanation)

继电反馈PID控制器参数自整定

Key value judgment in the cycle of TS type gymnastics, as keyword use
TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比

Simulation of Michelson interferometer based on MATLAB

QT color is converted to string and uint
![DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist](/img/17/415e66d67afb055e94a966de25c2bc.png)
DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist

Relevant introduction of clip image

opencv学习笔记九--背景建模+光流估计
随机推荐
Notes on software development
. Net 6 learning notes: what is NET Core
Data governance: 3 characteristics, 4 transcendence and 3 28 principles of master data
Comparison of usage scenarios and implementations of extensions, equal, and like in TS type Gymnastics
[KMP] template
TS 类型体操 之 循环中的键值判断,as 关键字使用
TS 体操 &(交叉运算) 和 接口的继承的区别
Interview Reply of Zhuhai Jinshan
Inspiration from the recruitment of bioinformatics analysts in the Department of laboratory medicine, Zhujiang Hospital, Southern Medical University
数据治理:主数据的3特征、4超越和3二八原则
The difference between TS Gymnastics (cross operation) and interface inheritance
Cf1036c class numbers solution
Codeforces Global Round 19(A~D)
P3047 [usaco12feb]nearby cows g (tree DP)
TS类型体操 之 字符串的妙用
24. Query table data (basic)
esRally国内安装使用避坑指南-全网最新
If Jerry needs to send a large package, he needs to modify the MTU on the mobile terminal [article]
【Redis】NoSQL数据库和redis简介
Key value judgment in the cycle of TS type gymnastics, as keyword use