-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
area:class referenceIssues and PRs about the class reference, which should be addressed on the Godot engine repositoryIssues and PRs about the class reference, which should be addressed on the Godot engine repositoryenhancement
Milestone
Description
Your Godot version:
4.4.1
Issue description:
The documentation for PropertyHint PROPERTY_HINT_DICTIONARY_TYPE mentions that one should use the hint string to specify the type of the key and value, which is described above under PROPERTY_HINT_TYPE_STRING, but nowhere does it specify how to separate the key hint from the value hint. I looked in the source code and found that it's done with a semicolon, but this is not specified anywhere.
var hint_string = "%d:;%d:" % [TYPE_STRING, TYPE_INT]
This creates a dictionary with keys of type string, and values of type int.
URL to the documentation page (if already existing):
https://docs.godotengine.org/en/stable/classes/class_%40globalscope.html#enum-globalscope-propertyhint
Metadata
Metadata
Assignees
Labels
area:class referenceIssues and PRs about the class reference, which should be addressed on the Godot engine repositoryIssues and PRs about the class reference, which should be addressed on the Godot engine repositoryenhancement