+1 vote

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

@export var dict: testdic: 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:

Godot version Godt 4 Beta 5
in Engine by (13 points)

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

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.

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 Frequently asked questions and 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 [email protected] with your username.