Is it possible to edit keys in exported dictionaries in the inspector?

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

I tried editing a dictionary in the inspector, and while you can easily edit the value after clicking “Add Key/Value Pair”, it seems to be impossible to edit the key without removing the item and making a new one.

:bust_in_silhouette: Reply From: Gluon

I dont think you can do that but you can add a new key with the same value and delete the old one

dict["New_Key"] = dict["Key_To_Change"]
dict.erase("Key_To_Change")

I was hoping for an answer that was less inconvenient. I guess just editing the dictionary in the script is probably the most convenient option.

SweetPie | 2022-01-07 23:08