- Home /
Is it possible to add an icon to indicate there is an editor tooltip decorating a variable?
So, I really like the tooltip attribute. I use it for a lot of variables so that I or my colleagues can easily discern the purpose of a variable in the editor. However, you need to hover for a little while over a variable in order to detect if there is a tooltip. If you don't know there is one you probably won't hover over it. So I wonder if ther is a way to add an icon, like a question mark, in order to indicate the existence of such a tooltip.
Now I know that there is no vanilla way of doing it. I could imagine it would probably include some pretty hairy editor scripting, including attribute decorators which is not something I have worked with previously. Would it be possible though? And if so how?
Just to be clear, I do not want to write a custom editor for every behaviour, nor write custom inspectors for every type out there, I would like the [Tooltip("Text yada yada")] to automagically display a little icon. I added a suggestion of adding this as a feature to the editor here but there seems to be little interest...
I was just looking to see if anyone had thought the same thing, and you have - +1, this would be lovely
Your answer
Follow this Question
Related Questions
Setting custom amount of space between elements in a custom inspector with EditorGUILayout ? 1 Answer
Serializable settings for custom PropertyDrawer 1 Answer
Using EditorGUILayout in my PropertyDrawer for an attribute causes ArgumentException 1 Answer
Get Method Of Class That Has An Attribute 0 Answers
Issue with property drawer control position in inspector 1 Answer