-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Doc Gen] shows "_" properties #52870
Comments
Properties prefixed with |
yep you're right its just a convention, adopted by you guys too in the project source, if I'm correct! So a tag should be made in case the user whants to expose then! Show all "_" started members and funcs, place at somewhere in the script:
Ignore all "_" started member and funcs (default):
expose a specific one (in case hide_private was declared) must be placed at the top of member/func declaration: ## @show this is a member
var _test:bool = false Also I would like to know what @ThakeeNathees think :D |
Yes, see also godotengine/godot-proposals#641 and my own godotengine/godot-proposals#2285 to provide some context on what should considered to be "private" versus just "internal" (I really think this kind of differentiation should be core |
Godot version
v4.0.dev.20210916.official [104a619]
System information
manjaro Gnome 21, AMD R7 200 series, Intel i3 3.0 GHZ,8GB RAM
Issue description
When you create a scrpit with methods and variables starting with "_" in the community this means "private" and shouldnt be shown to the end user documentation, which is not the current behaviour:
altought when you open your project, sometimes it doesnt show the "_" started vars and methods!
Steps to reproduce
use the following script as example:
Minimal reproduction project
N/a
The text was updated successfully, but these errors were encountered: