0 votes

I can find "Custom Constants" in some Container derived nodes (i.e. GridContainer) but they are not documented in any section of the documentation.
Here is a screenshot:
Link to image

in Engine by (679 points)
edited by

Where in the docs is there a reference to "Custom Constant"(s)?

Precisely, the lack of documentation is what is causing my question.
They seem to appear on nodes that are inside container type nodes. In particular one example is to add a LineEntry inside a Container type node (VBoxcontainer for example).
If you do that, then it appear a new section of nodes parameter called "Custom Constants" for the LineEntry node, inside the Container section, at the end. (cant' take a screenshot now)

Ahh... so "custom" constants of Control-based classes... I might answer later, unless somebody is faster.

@Bojidar: Nobody was faster so far apparently ;)

@genete: Please try to be clearer in your question next time, nobody knows every single piece of text that is written in some node of the editor, so you should give the context yourself, not wait for others to ask themselves for 5 minutes what you are referring to with "Custom Constants".

My natural answer to the question as you wrote it would be:

They are constants which are user-defined (custom).
You can define constants in GDScript with:

 const MYCONSTANT = 42

Obviously that's not what you want to know, but that's the kind of half-trollish answer your question calls for ;)

@Akien: I'll update the question.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.