I made a button list similar to the one below:
GUI.BeginGroup(rect);
GUILayout.Button("Level 1");
GUILayout.Button("Level 2");
GUILayout.Button("Level 3");
GUILayout.Button("Level 4");
GUI.EndGroup()
What I want to do is show an image on GUI which changes depending on which button my mouse cursor is over. For example, if my cursor is over Level 1 button, the GUI shows a level 1 preview. Then if I move it into Level 3 it changes to a level 3 preview, and so goes on. Problem is I cant figure a way to do this without getting errors or even doing something!!
Works perfectly, thanks a lot! :D Just to clarify for those who didnt get it, you can add a tooltip to the buttons on the format below: GUILayout.Button(new GUIContent("Text or Image", "Tooltip")); Then you can simply use switch(GUI.tooltip) to specify the events.
– Ralp