Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question how can I draw on top inspector properties?

Discussion in 'Immediate Mode GUI (IMGUI)' started by INeatFreak, Apr 24, 2022.

  1. INeatFreak

    INeatFreak

    Joined:
    Sep 12, 2018
    Posts:
    46
    Hi, I'm asking how can I draw something per property shown on inspector, like how unity draws prefab changes with blue vertical line on image shown below.

    upload_2022-4-24_23-31-54.png

    Is there a function to do this or an internal one we can use with reflection? Thanks in advance.
     
  2. INeatFreak

    INeatFreak

    Joined:
    Sep 12, 2018
    Posts:
    46
    Just in case anyone gonna mention PropertyDrawers I already know that but they only work for specific components which is not what I'm looking for. I need an generic gui callback that runs per property for all component on inspector,