- Home /
Is it possible to change the canvas size in 2D?
Hello! I'm making a score for my 2D game in Unity! The score is set to the X axis in the canvas which is 314, because I built the game in the middle of the canvas. To start the score with 0 and not 314 I need to change the size of the canvas! Is this possible?
Hello there.
Of course is posible, modify it rect transform...
Please go fing some tutorials about this if you are not able to find it alone.
Why would you need to change the dimensions of your canvas in order to change a scoring? I cant think of a single instance where its good practice to change the size of your canvas, rather than the elements in it. Do you have more context for us?
Your answer
Follow this Question
Related Questions
Keep sprites at fixed size 3 Answers
trail renderer shows above everything (Unity 2D sorting layer ) 0 Answers
Problem starting the game with a key 1 Answer
Unity 4.6 UI Canvas width & height 2 Answers
Creating 'redstone' like wires 1 Answer