- Edited
I've been trying to create a dictionary with C# but so far everything I've tried has been unsuccessful. I already checked the docs and looked on Google but just can't seem to find the anwer. This is some of the stuff I've tried.
public class GameSettings : Node
{
Godot.Collections.Dictionary dict = {"fdsfs":4, "hello":1};
var dict = new Godot.Collections.Dictionary();
dict = {"fdsfs":4, "hello":1}; //Doesn't work because of var
public override void _Ready()
{
}
}
I would appreciate it if you guys could help me. Thanks!