当前位置:网站首页>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
边栏推荐
- C # create database connection object SQLite database
- Full Score composition generator: living on code
- C intercept string
- QT color is converted to string and uint
- Redis builds clusters
- Webrtc series-h.264 estimated bit rate calculation
- Opencv learning notes 8 -- answer sheet recognition
- 珠海金山面试复盘
- C # display the list control, select the file to obtain the file path and filter the file extension, and RichTextBox displays the data
- [CF Gym101196-I] Waif Until Dark 网络最大流
猜你喜欢
Fundamentals of C language 9: Functions
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
珠海金山面试复盘
Pangolin Library: control panel, control components, shortcut key settings
07- [istio] istio destinationrule (purpose rule)
21. Delete data
Solution: intelligent site intelligent inspection scheme video monitoring system
TS 类型体操 之 循环中的键值判断,as 关键字使用
Three no resumes in the software testing industry. What does the enterprise use to recruit you? Shichendahai's resume
Document 2 Feb 12 16:54
随机推荐
Entity class design for calculating age based on birthday
Significance and measures of encryption protection for intelligent terminal equipment
Pre knowledge reserve of TS type gymnastics to become an excellent TS gymnastics master
. Net 6 learning notes: what is NET Core
[KMP] template
成为优秀的TS体操高手 之 TS 类型体操前置知识储备
[1. Delphi foundation] 1 Introduction to Delphi Programming
Launch APS system to break the problem of decoupling material procurement plan from production practice
jmeter性能测试步骤实战教程
Vit (vision transformer) principle and code elaboration
onie支持pice硬盘
Mex related learning
octomap averageNodeColor函数说明
Rust language - receive command line parameter instances
23. Update data
Key value judgment in the cycle of TS type gymnastics, as keyword use
Related operations of Excel
Ali's redis interview question is too difficult, isn't it? I was pressed on the ground and rubbed
Mise en œuvre du langage leecode - C - 15. Somme des trois chiffres - - - - - idées à améliorer
Apache middleware vulnerability recurrence