I have used GUILayout.SelectionGrid with an array of 10 Textures with a width of 5 images and it shows well 2 lines of 5 empty slots but no images inside.
Can you give us a picture and some code examples?
I am not at home atm, but code was like
int selec=0;
public Texture[] texturas;
selec= GUILayout.SelectionGrid (selec, texturas, 5);
I gave the values of the texturas array in the editor, each texture was 32x32 pixeles in a window of about 250 px width. Maybe i need to place a low number of textures per line?
Make sure the textures are assigned in the inspector.
Make sure you placed your gui code in onGUI?
Make sure you’ve placed the grid at 0,0 in the guilayout?
Do you get any error code?
Check:
Texture.wrapMode
GUILayoutOption[ ]
Check texture type under the texture assets you imported, some won’t work with the gui if you do not assign it properly.
They could be getting clipped out completely from your assigned gui skin or gui style, or your GUILayoutOption[ ] as they add padding and margins to each button you create.
If that doesn’t help, try getting the whole code posted when you’re back at your home office.
I got it, i was using necromancer GUI, just had to use a style of the skin without a background image.
I am wondering now if a border for just one of the images can be created in case you select it but not theothers, i know with style can be used border images but probably will be show for all