Unity Gems(持续更新)
2018-08-25 本文已影响78人
Angeladaddy
起始时间:2018.08.24
从今天起,持续更新此贴,记录下做工程中走过的坑,以及一些经验
使用UGUI制作带背景的自适应文本

//父物体(背景):
1. Vertical Layout Group:
Child alignment - Upper Left
Child Control Size - [x] Width - [ ] Height
Child Force Expand - [x] Width - [ ] Height
2. Content Size Fitter:
Horizontal - Unconstrained
Vertical - Preferred
//子物体(Text)
1. Text:
Horizontal Overflow: Wrap
Vertical Overflow: Truncate
2. Content Size Fitter
Horizontal - Unconstrained
Vertical - Preferred Size