Add show inherited properties and methods in API docs #7497
Replies: 3 comments 7 replies
-
Can you edit the discussion title to be more informative? |
Beta Was this translation helpful? Give feedback.
-
This already exists, see here For methods it's an implementation detail and I don't think it'd help to know in the documentation, it would clutter Nite that unlike other documentation the API documentation doesn't allow modification and the API is bound, not in GDScript or C#, so the specific implementation points are not relevant details The only relevance would be that the behaviour changes but that is happening through other ways as well so it's not reliable to just know if a method is overridden, further that information isn't even available to the API as the methods are only bound once |
Beta Was this translation helpful? Give feedback.
-
I see it useful to learn when you are a beginner. When I look at a class I don't know what its attributes may be because they are defined in higher classes in the inheritance hierarchy and I don't even know that they exist. For example, someone who starts and finds the AnimatedSprite2D class does not know whether or not it has a property such as x or y. You don't know if its called position nor what type does it have. You have to "climb" the inheritance tree and examine each class. Anyway you could always use a checkbox to show or not this info |
Beta Was this translation helpful? Give feedback.
-
Hello,
this is my first proposal, so maybe I'm not doing it in the proper way or place. If so, please tell me how to do it.
Coming from Phaser I found it hard to find where inherited properties were defined. I could look at the inheritance tree, but I had to do it class by class. Well, using intuition, one could save a few steps but it wasn't right away
It would be nice to have direct access in every class documentation to all of its inherited properties and methods. Maybe a list of all of them showing with a link to the classes they were defined. About formatting maybe a breadcrumb could be nice so every class int he inheritance tree would be accessible
Phaser API examples. Not very beautiful in my opinion (but it's arguable), but it is functional:
thanx
Beta Was this translation helpful? Give feedback.
All reactions