Godot 4: How to export a filled Dictionary to the inspector without it showing up as empty

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SockSteve

Is it currently possible to export a filled Dictionary in Godot 4?

@export var dict: test_dic: Dictionary = {“key”: “value”}
only shows up as an empty dictionary in the inspector.
I already tried changing the values through _get_property_list(), but no luck there.

I made a screenshot of the problem:

Probably just a bug in godot 4. Have you tried the same in godot 3.

magicalogic | 2022-11-22 05:01

works in godot 3.
I can go into the engine source code and fix it. Will update this thread when it’s officially fixed with a new version.

SockSteve | 2022-11-22 11:30