Work with dictionary

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

How to add something to an existing dictionary?

:bust_in_silhouette: Reply From: kidscancode
var some_dict = {"a": 1, "b": 2}

You can add another key like so:

some_dict["c"] = 3

This is all explained in the GDScript “Dictionary” documentation