RectTransform - how to change height and width
hwo do i transform both variables on c#, i've been trying to get the component and then trasnforming, but the getcomponent part seems to have a problem... how would i do that?
Answer by White_Roses · Oct 31, 2018 at 03:55 PM
I didn't use c# but this is what I did: I clicked onto the game tab and there should be a little section showing you the screen ratio. At the very bottom of the options, click the '+' option. There you should be able to make your own screen ratio. It may take a good while to get the ratio you want but it will change the width and height of the react transformer. Hope this helps @Kemorno :)
Your answer
Follow this Question
Related Questions
How to get 2d camera width & height? 2 Answers
Recttransform keeps changing when I test or play game 1 Answer
UI GameObject (Button prefab) randomly changing Z axis RectTransform when instantiated 1 Answer
How to get coordinates, width, and height from BoxCollider2D? 1 Answer
Find the Terrain Width and Height 1 Answer