
UI ....................................................................................................................................................... 4
一、UI Overview 概要 ........................................................................................................... 4
1、Canvas ......................................................................................................................... 4
1.1 Screen Space - Overlay ..................................................................................... 5
1.2 Screen Space - Overlay ..................................................................................... 5
1.3 World Space ..................................................................................................... 6
2、 Basic Layout ............................................................................................................. 7
2.1 The Rect Tool .................................................................................................... 7
2.2 Rect Transform ................................................................................................. 7
2.2.2 Pivot .............................................................................................................. 8
2.2.3 Anchors ......................................................................................................... 8
3、Visual Components ................................................................................................... 10
3.1 Text ................................................................................................................. 11
3.2 Image .............................................................................................................. 11
4、 Interaction Components ......................................................................................... 13
4.1 Selectable Base Class ...................................................................................... 13
4.2 Button............................................................................................................. 13
4.3 Toggle ............................................................................................................. 14
4.4 Toggle Group .................................................................................................. 15
4.5 Slider .............................................................................................................. 15
4.6 Scrollbar ......................................................................................................... 16
4.7 Scroll Rect ....................................................................................................... 17
4.8 Input Field ...................................................................................................... 18
5、 Animation Integration(动画集成) ..................................................................... 19
6、 Auto Layout ........................................................................................................... 21
6.1 Understanding Layout Elements .................................................................... 21
6.2 Content Size Fitter(内容大小适配器) ...................................................... 22
6.3 Driven Rect Transform properties .................................................................. 22
6.4 Layout Element............................................................................................... 23
6.5 Layout Groups ................................................................................................ 23
6.6 Horizontal and Vertical Layout Group ............................................................ 23
6.7 Grid Layout Group .......................................................................................... 23
6.8 Layout Interfaces ............................................................................................ 24
7、 Rich Text .................................................................................................................. 24
7.1 Markup format ............................................................................................... 24
7.2 Nested elements ............................................................................................ 25
7.3 Tag parameters ............................................................................................... 25
7.4 Supported tags ............................................................................................... 25
7.5 Editor GUI ....................................................................................................... 27
二、 UI Reference(参考) .................................................................................................. 28
1、Rect Transform .......................................................................................................... 28
2、Canvas Components .................................................................................................. 29
2.1 Canvas .......................................................................................................... 29
Properties ........................................................................................................................ 29
- 1
- 2
- 3
- 4
前往页