当前位置:网站首页>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
边栏推荐
- [非线性控制理论]9_非线性控制理论串讲
- Simulation of Teman green interferometer based on MATLAB
- Ble of Jerry [chapter]
- 珠海金山面试复盘
- Emo diary 1
- Pangolin Library: control panel, control components, shortcut key settings
- After the hot update of uniapp, "mismatched versions may cause application exceptions" causes and Solutions
- [dictionary tree] [trie] p3879 [tjoi2010] reading comprehension
- 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
- Transformer principle and code elaboration
猜你喜欢
继电反馈PID控制器参数自整定
08- [istio] istio gateway, virtual service and the relationship between them
软件测试界的三无简历,企业拿什么来招聘你,石沉大海的简历
[redis] Introduction to NoSQL database and redis
JMeter performance test steps practical tutorial
解决方案:智慧工地智能巡檢方案視頻監控系統
861. Score after flipping the matrix
Significance and measures of encryption protection for intelligent terminal equipment
octomap averageNodeColor函数说明
How to delete all the words before or after a symbol in word
随机推荐
Ble of Jerry [chapter]
When the Jericho development board is powered on, you can open the NRF app with your mobile phone [article]
Data governance: Data Governance under microservice architecture
数字经济时代,如何保障安全?
超级浏览器是指纹浏览器吗?怎样选择一款好的超级浏览器?
[KMP] template
Three treasures of leeks and Chinese men's football team
49. Sound card driven article collection
Ali's redis interview question is too difficult, isn't it? I was pressed on the ground and rubbed
Full Score composition generator: living on code
Luogu p4127 [ahoi2009] similar distribution problem solution
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
数据治理:误区梳理篇
继电反馈PID控制器参数自整定
leecode-C語言實現-15. 三數之和------思路待改進版
C # display the list control, select the file to obtain the file path and filter the file extension, and RichTextBox displays the data
数据治理:数据质量篇
C # connect to SQLite database to read content
How to delete all the words before or after a symbol in word
edge浏览器 路径获得