canva screen size 1280 by 720

 In Unity, setting your Canvas to a 1280x720 resolution involves configuring the Canvas Scaler component to handle scaling across different screen sizes. 

1. Configure the Canvas Scaler 
To ensure your UI scales correctly to 720p, you must set a "Reference Resolution": 
  • Select your Canvas: Click on the Canvas object in your Hierarchy.
  • UI Scale Mode: In the Inspector, change this to Scale With Screen Size.
  • Reference Resolution: Enter 1280 for X (Width) and 720 for Y (Height).
  • Screen Match Mode: Set this to Match Width or Height.
  • Match Slider: Usually, a value of 0.5 is best to balance scaling between different aspect ratios. 
2. Set the Game View (Editor Preview) 
To see your 1280x720 design while working in the editor:
  • Open the Game tab window.
  • Click the Resolution dropdown in the top left (it often says "Free Aspect").
  • Select 1280x720 (16:9) from the list. If it isn't there, click the + icon to add a custom resolution with those exact pixel values. 
3. Set the Default Build Resolution
To make your final game export default to this size:
  • Go to Edit > Project Settings > Player.
  • Expand Resolution and Presentation.
  • Set Default Screen Width to 1280 and Default Screen Height to 720

Comments