Search Unity

Draw sprite in inspector?

Discussion in 'Immediate Mode GUI (IMGUI)' started by FuzzyBalls, Apr 14, 2015.

  1. FuzzyBalls

    FuzzyBalls

    Joined:
    Jun 12, 2014
    Posts:
    47
    Hey,

    I'm trying to draw a sprite in the inspector (on a scriptable objects editor) to act as a preview. I know of OnPreviewGUI etc but I don't know how to use it with a scriptable object..

    Is there a way to do this easily?

    Thanks in advance.