Skip to content

PropertyHint PROPERTY_HINT_DICTIONARY_TYPE description is unclear. #11022

Closed
@Wyatt-Warren

Description

@Wyatt-Warren

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

No one assigned

    Labels

    area:class referenceIssues and PRs about the class reference, which should be addressed on the Godot engine repositoryenhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions