So, I have a button something like this:
if(GUI.Button(Rect(140,800,50,30),"House")){
if (Wood > 24){
placing = true;
Ok, but i want when my mouse is on top of this button to make me a box were i can put some information about my house ....
Can you help me?
Cheers!
As stated in the forum, the best way to approach this would be to create the GUI Button, then use
if (new Rect(140, 800, 50, 30).Contains(Input.mousePosition)) { /* create GUI label here */ }
Read more about `Rect.Contains()` in the manual here.
Ok, I get the idea, thank you for answer.