Unity Community


Results 1 to 3 of 3

  1. Location
    Paris (France)
    Posts
    19

    User List with scrolling & mouse event

    Hello,

    I'm trying to make a user list with a vertical scrollbar. It's easy if I use the function OnGUI. But how can I detect a mouse hover event on an element of my list? (GUI.Button only return mouse click....).

    I suppose I have to use guiTexture & guiText object, but I don't find how can I create a scrolling window ? Is it possible that a guiTexture became the mask of another guiTexture?

    Thanks


  2. Location
    USA
    Posts
    557


  3. Location
    Paris (France)
    Posts
    19
    Ok, the solution is to use GUI.tooltip

    http://unity3d.com/support/documenta...I-tooltip.html
    Tooltips can also be used to implement an OnMouseOver / OnMouseOut messaging system:

    And use all GUI.x
    Last edited by tikod; 02-17-2011 at 09:03 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •