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

Quick Q: new GUI and click catching?

Discussion in 'Immediate Mode GUI (IMGUI)' started by Foxxis, Dec 14, 2007.

  1. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Suppose I have a quite complex GUI for display using a variety of elements, and want to catch clicks no matter where they are within the object.

    Can I simply create a button object without any image or text (invisible) and have it catch all clicks within an area?

    TIA!
     
  2. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Realized I had an extremely quick way of testing it, so to answer my own question: Yes, works well. :)