Trabla: Unity3D canvas config for HD ( 720 x 1280 ) resolution ( 2D games )
This tutorial explains how to proper config canvas (and camera) for HD resolution in 2d games.
Solving:
1. Run Unity3D, create new 2D project
2. Right mouse click on "Main Camera" - select "Panel". Canvas element with be created automatically.
3. Click on "Canvas" in Hierarchy windows.
Than set "Canvas Render Mode" to "Screen Space - Camera"
4. Drag-n-drop "Main Camera" into Canvas "Render Camera"
5. In Canvas Scaler (Script)
change Screen Match Mode to "Scale With Screen Size"
6. Set reference resolution - 720 x 1280 - HD
7. Save Project
Now you can add standart UI button and see how it looks in HD resolution
No comments:
Post a Comment