- Home /
Develop 2D game Inside Canvas Scaler
Hi guys,
I'm new to unity and i came from cocos2d-x. I've realized that it's difficult do a multi resolution 2d game on unity without paid 3rd plugins available on Asset Store.
I've made some tests and i'm able to do multi resolution support in this way:
1- Put everything from UI (buttons etc) inside a Canvas object in Render Mode Screen Space - Overlay with 16:9 reference resolution and fixed width.
2- Put the rest of the game objects inside a Game Object called GameManager with the Canvas Scaler component in Render Mode Screen Space - Camera with 16:9 reference resolution, fixed width and the Main Camera attached. After that, all game objects like player, platforms etc inside GameManager need to have a RectTransform component, CanvasRenderer component and Image Component for example.
Can i continue developing the game in that way, or this is a wrong way to do the things?
Regards
Your answer
Follow this Question
Related Questions
How to scale according to different mobile resolutions? 0 Answers
Buttons as children of panel scale on different resolution not working 0 Answers
Aspect Ratios aren't displaying properly on build 1 Answer
Fixed aspect ratio/resolution independence 1 Answer
Setting up Canvas to scale correctly with different resolutions 0 Answers