Set size of generic list via script?
I just started using lists and its a bit confusing to me. How can I set the size of my list? Count is read only and Capacity doesn't do it either. With arrays you'd do something like: array1.length =...
View ArticleGUI Text and GUI Texture not rendering properly
Hi! Why doesnt GUI Texture scale according to the resolution in the player? Ive set the resolution to 768x1280 (portrait nexus 4 mode) but the GUI Texture (which is set to have 32x32 in size) is...
View ArticleHow to work with Unity native GUI Elements like GUI Text for screens with...
I am working on a 2d (V 4.3) game which is supposed to work on various screen sizes. I was able to re-scale and reposition the elements of game like non-gui sprite based buttons etc. But i am...
View ArticleUnity increases size of imported sprites
I had imported a .png (800 x 294) Size 37.2 KB into unity but after importing it shows it size 0.9MB, which is too large than original. I changed the Max Size for 1024 to 512 in import settings which...
View Article[2D]Size of an object + align on grid
Hello. First, I want to know if it's possible to see the object's size directly in unity, and if yes, if we can change it directly. I know we can get it with renderer.bounds.size, but it would help if...
View Article