Please make it possible to create custom tooltips with C# source code on Editor. #5675
Replies: 4 comments 3 replies
-
Is worth thinking whether we should just automatically use XMLDoc assuming all code documentation in classes and exported members is always desired as tooltip, or if we should require explicitly enabling that. I don't know if there are valid situations where one would want different doc in code and editor, but it could be the case ...? For example, through special markup: ///<tooltip><summary>Tooltip blah blah.</summary></tooltip>
///<remarks>Not in tooltip.</remarks>
[Export] string myProp; ... or maybe even an attribute: ///<summary>Tooltip blah blah.</summary>
[Export, Tooltip] string myProp;
///<summary>Not in tooltip.</summary>
[Export, Tooltip("Tooltip blah blah.")] string otherProp; I'm not advocating for either solution btw, just wanted to throw an idea here. I'm fine with any implementation, and if all XMLDoc in exported members is automatically tooltip, that's fine by me too. Might even be the best solution. In any case, yes, please do bring this GDScript feature to C# as well! 😄 |
Beta Was this translation helpful? Give feedback.
-
Why is this a discussion and not an issue? Isn't this a missing feature? |
Beta Was this translation helpful? Give feedback.
-
I am new to Godot (Unity refugee). This post is a year old. I think it's pretty clear what people want (and it already works with GDScript). Could this be converted to an issue so this can be on some sort of road map? (I noticed that I can convert this to an issue myself, but -as I noted earlier- I am new to this community, so I don't feel it's my place to start raising issues) |
Beta Was this translation helpful? Give feedback.
-
Closing in favor of #8269, as a technical implementation was provided in #8269 (comment). |
Beta Was this translation helpful? Give feedback.
-
Describe the project you are working on
Because we are creating a game that depends on physics,
Creating a physics-based character controller
Therefore, the amount of code will inevitably increase and the amount of variables exposed on the Editor will also increase.
Describe the problem or limitation you are having in your project
If you can't create a Tooltip that can be displayed on the Editor
I need to open the IDE to see what the variables mean
very troublesome
GDScript allows you to create custom Tooltips
I can't believe it's not possible in C#.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Create custom tooltips in C# code
Please make it possible.
This allows you to check the meaning of the variables on the Editor, so
Increased development iterations
In team development
For artists and designers adjusting variables
It has great benefits.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Using doc comments in C#
Display a custom tooltip on the Editor
If this enhancement will not be used often, can it be worked around with a few lines of script?
Currently there is no solution.
Is there a reason why this should be core and not an add-on in the asset library?
as explained above
・Improve iteration
・Checking variables in team projects
There are many advantages
Beta Was this translation helpful? Give feedback.
All reactions