Hello, I know of the tool tip function for on gui, but im trying to detect which button is is under the mouse to bring up a full item description in a scroll box for an inventory. I am using the basic grid
var itemDescription: String;
var selectionStrings : String[] = ["Grid 1", "Grid 2", "Grid 3", "Grid 4"];
function OnGUI () {
var selectionGridInt : int = -1;
selectionGridInt = GUI.SelectionGrid (Rect (25, 25, 100, 30), selectionGridInt, selectionStrings, 2);
for ( i = 0; i < items.length; i ++ ) {
if ( selectionGridInt == i ) {
//blah blah
}}}
// i dont even know//
function OnMouseOver(selectionGridInt){
for ( i = 0; i < items.length; i ++ ){
??? if(selectionGridInt == i) ???
itemDescription = items*.GetComponent(itemScript).description;*
*```*
*<p>Thanks for any help!</p>*