Quantcast
Viewing latest article 29
Browse Latest Browse All 94

Change slection grid content texture size/scale

I am using a gui.selection grid with textures for an inventory system. I noticed that with gui skin you can change just about everything concerning the grid's cells, but NOT any image you assign to individual cell BUTTONs though script. It seems to default assigned textures to the actual texture's imported scale. How can I change the size/scale of the textures I assign to the grid, and not just the background of the cells with gui skin? lineupInt = GUI.SelectionGrid (Rect (x , y, z, w), lineupInt, icons, 3); icons[i] = inventory[i].icon; //so basically is there a way to do something like this? icons[i].width = x; icons[i].height = x; I would even settle for changing each grid cell's background to icons[i]'s texture if you can't resize the button content thanks

Viewing latest article 29
Browse Latest Browse All 94

Trending Articles