Search Unity

Resolved Icon in GenericMenu; Possible ?

Discussion in 'Immediate Mode GUI (IMGUI)' started by FuguFirecracker, Apr 16, 2021.

  1. FuguFirecracker

    FuguFirecracker

    Joined:
    Sep 20, 2011
    Posts:
    419
    Hey team.
    Is it possible to display an icon [ Texture2D ] in the GenericMenu ?
    Any image passed along to the GenericMenu in the GUIContent is promptly ignored.
    Reflection? OpenGL? A third thing ?

    Just asking if it's a possibility before I go and write a new ContextMenu class.

    Thanks !
     
  2. FuguFirecracker

    FuguFirecracker

    Joined:
    Sep 20, 2011
    Posts:
    419
    newContextMenu.png

    I went ahead and wrote a new Menu
     
    eses likes this.
  3. ryandougherty25

    ryandougherty25

    Joined:
    Mar 5, 2018
    Posts:
    1
    Any possibility you could share this code? I'm attempting to do the same thing: I want to display an icon inside a GenericMenu item