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
Expose built-in types default constructors #6977
Comments
|
@bojidar-bg it doesn't seem to register default constructors. Considering the comment in |
kicking to 3.1 unless someone adds it |
Found another confused post, PoolVectors default constructors aren't listed either https://godotengine.org/qa/17117/how-to-construct-a-poolbytearray?show=17118#a17118 (but he/she also seem to have mixed the two doc versions) And this another one https://godotengine.org/qa/20879/correct-vector2array-syntax?show=20916#c20916 Aaand another one https://godotengine.org/qa/21415/how-do-i-declare-vector3array-in-gdscript |
@vnen @bojidar-bg Any idea on how to do this for 4.0? Worst case we could register them manually I guess. |
Primitive math types often have multiple constructors, but the default one is not listed. Also, some people read the docs first before writing code (especially with a scripting API), it can be misleading to hint there is no default constructor, leading them to not even try.
These constructors exist, they can be used. But if they are not found by doctool... then we have another problem, because not a single default constructor is ever documented, not just math primitives. Which leads me to think they are bound automatically, and unavailable to doctool.
Original request: #6752 (comment)
The text was updated successfully, but these errors were encountered: