unity设置UI界面16:9铺满屏幕
2018-12-19 本文已影响0人
此bug有毒
①新建一个Image(系统会自动新建一个Canvas画布和EventSystem事件系统)

②选中Canvas对象并且把CanvasScaler脚本组件的UIScaleMode的值设置为:Scale With Screen Size

3选中Image然后设置RectTranform

④选中Canvas并设置Reference Revolution为1920*1080

①新建一个Image(系统会自动新建一个Canvas画布和EventSystem事件系统)
②选中Canvas对象并且把CanvasScaler脚本组件的UIScaleMode的值设置为:Scale With Screen Size
3选中Image然后设置RectTranform
④选中Canvas并设置Reference Revolution为1920*1080