Search Unity

What is the easiest way to get mouse move events in inspectors?

Discussion in 'Immediate Mode GUI (IMGUI)' started by steinbitglis, May 1, 2012.

  1. steinbitglis

    steinbitglis

    Joined:
    Sep 22, 2011
    Posts:
    254
  2. dodo

    dodo

    Joined:
    Jul 13, 2011
    Posts:
    49
    Why not use an EditorWindow for your atlas editor? You can do some simple drawing in the inspector but I don't think it's a good idea to deal with mouse movement stuff in it. After all the purpose of the inspector is to list the properties of an object. The EditorWindow is much more flexible to do your own drawing, handling mouse events etc.
     
  3. steinbitglis

    steinbitglis

    Joined:
    Sep 22, 2011
    Posts:
    254
    Thanks, I think we agree. Since my editor does a fancy kind of property listing, mouseover is not necessary.

    It's currently a tradeoff between not having an extra window or getting fancy effects. Since this is a production tool, I prefer the inspector because it knows where to sit and when to disappear.