Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

User List with scrolling mouse event

Discussion in 'Immediate Mode GUI (IMGUI)' started by tikod, Feb 16, 2011.

  1. tikod

    tikod

    Joined:
    Nov 30, 2010
    Posts:
    19
    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. GibTreaty

    GibTreaty

    Joined:
    Aug 25, 2010
    Posts:
    792
  3. tikod

    tikod

    Joined:
    Nov 30, 2010
    Posts:
    19
    Last edited: Feb 17, 2011