Topic was automatically imported from the old Question2Answer platform.
Asked By
Hartmut Seichter
I cannot figure out for the sake of it how to create a dictionary with the GDNative API … I can do Variants and hand over Arrays, however I need to have a dictionary to hand over key-value pairs.
Me too! I can’t find any tutorials!
RyanJZG | 2018-03-27 10:48
Then please give this question a vote. Otherwise it will sink into oblivion …
I didn’t either until I tried searching for it.
First search for “GDNative” in docs gave clue about existence of methods starting with godot_variant and godot_string
Next I go to official repository and search for godot_dictionary gave results
Base on them I’m guessing that to create dictionary you write something similar to this one: