Setting ToolTip to Above Mouse Position

I'm putting a point and click game together, and I wanted my tooltip to show up over objects when the user points at them.

My tooltip recognizes objects just fine, saying the right names and appearing and all that, but I cannot get it to appear at mouse position.

Does anyone have any suggestions?

Get the position of the cursor, and use that + 100 on the Y or what not to get it above... Um,

var mousePos : Vector3 = Input.mousePosition;

And that'll get the X/Y and then you can just put the tool tip at the X/Y but add (I think UNity starts in the upper left corner, so it'd be subtract) 100, and it should work...

If that doesn't make sense, than ask!

Good luck!

The Mouse seems to be inverted along the Y-axis - so to solve your problem try to do

Screen.height-mousePos.y

That put it right on the cursor for me!

Is there any possibility for the sake of someone who is not very well versed in scritping that you could maybe just go a touch deeper, I tried to implement this advice into my script and the position of the tooltip is at the bottom of the screen instead of by the cursor,this is the code I am using sorry if it seems remedial I am trying to learn on my own...

var mousePos: Vector3 = Input.mousePosition;

function OnGUI () { if (GUI.Button (Rect (10, 10, 100, 50), GUIContent("New Game", "Start a New Game"))) {

    Application.LoadLevel (1);

    }
    GUI.Label (Rect (mousePos.x, mousePos.y - 100, 100, 20), GUI.tooltip);

}

Is there any possibility for the sake of someone who is not very well versed in scritping that you could maybe just go a touch deeper, I tried to implement this advice into my script and the position of the tooltip is at the bottom of the screen instead of by the cursor,this is the code I am using sorry if it seems remedial I am trying to learn on my own...

`var mousePos: Vector3 = Input.mousePosition;

function OnGUI () { if (GUI.Button (Rect (10, 10, 100, 50), GUIContent("New Game", "Start a New Game"))) {

    Application.LoadLevel (1);

    }
    GUI.Label (Rect (mousePos.x, mousePos.y - 100, 100, 20), GUI.tooltip);

} `

Sorry for double post I was trying to fix the code example