- Home /
Multiple images in GUI SelectionGrid
I have a table of images and each image has a series of changeable icons that lie on top of the image. There are three icons and one string (to indicate a total). I have attempted to place my icons inside the grid with their own Rects but their placement is always slightly off at each iteration of new row and column. As an example, the icon will be at coordinates (0,7). I assume SelectionGrid would place it at that location for every items local coords on the grid. However from the first grid to the second it will change to (2,7) and continue to increase for each grid item.
scrollPosition = GUI.BeginScrollView(rScrollFrame, scrollPosition, rList, GUIStyle.none,game.scrollBox.verticalScrollbar);
//this represents the image that is placed on all the grids
selectionGrid=GUI.SelectionGrid(imageRect,selectionGrid,cont.CrewImages(),columns,game.buttonFrames);
//this is an icon that should get placed over the image but the coords will not match the above grid coords
GUI.SelectionGrid(imageRect,-1,cont.Race(),columns,GUIStyle.none);
Your answer
Follow this Question
Related Questions
What Is Lighter GameObject or Rect 1 Answer
GUI co-ordinates bug? 1 Answer
Rotating a Rect by the GUI.matrix? 0 Answers
Can you use an Axis to navigate a Selection Grid easily? 1 Answer
how to find out the absolute coordinate? 0 Answers