Search Unity

Custom GUI handling: styles and states

Discussion in 'Immediate Mode GUI (IMGUI)' started by Dom, Dec 27, 2009.

  1. Dom

    Dom

    Joined:
    Jul 10, 2007
    Posts:
    91
    In in editor-window script, I'd like have some custom controls, thus I check manually for hover etc.

    I wonder how I can render i.e. a box using the hover state? In the normal method I specify the style, but I am not sure how to make sure that it uses i.e. the hover state.

    Any hints?

    thx
    Dom
     
  2. Dom

    Dom

    Joined:
    Jul 10, 2007
    Posts:
    91
    One could rephrase the question to: how would one re-implement GUI.button?
     
  3. Dom

    Dom

    Joined:
    Jul 10, 2007
    Posts:
    91