- Home /
Best Answer
Answer by DaveA · Feb 21, 2014 at 04:35 AM
DrawPreviewTexture
There's actually sample code here that should get you there: http://docs.unity3d.com/Documentation/ScriptReference/EditorGUI.DrawPreviewTexture.html
Answer by ArchyInf · Feb 20, 2014 at 09:12 AM
GUI.SelectionGrid:
public static int SelectionGrid(Rect position, int selected, Texture[] images, int xCount);
I know how to use that in normal GUI stuff, but does that work in custom editors too?
Yes, and the terrain inspector uses this function to draw it's texture grid.