Code : Tout sélectionner
var afficher : boolean = false;
function OnGUI() {
var e : Event = Event.current;
if (afficher == true) {
GUI.Label (Rect (e.mousePosition.x, e.mousePosition.y, 100, 20), "Test");
}
}
function OnMouseOver () {
afficher = true;
}
function OnMouseExit () {
afficher = false;
}