1.Canvas:
1)Render Mode : Screen Space -Camera
2)Render Camera : UICamera(自己创建的相机)
3)Plane Distance : 0
2.Canvas Scaler:
1)Ui Scale Mode : Scale with screen size (宽度标准缩放)
2)Reference Resolutioin: 1920 * 1080 (屏幕分辨率)
3)Screen Match Mode: Expand (UGUI自己自适应屏幕的选项)
3.UICamera:
1)Clear Flags: Don‘t clear
2) Culling Mask: UI
3) Projection: Orthographic (正交)
4)Size: 长宽比 (1920/1080)
5) Depth: 大于Main Camera的深度即显示在前面
UGUI: http://www.xuanyusong.com/archives/3278
时间: 2024-10-13 01:24:13