Hello!
I am new to Unigine and I am currently going through the UnigineScript documentation. Something that struck me is that I can not see a big difference between appending to a map and just setting a value. The documentation seems to recommend using append when inserting new values, so I am wondering if they are different in some way, maybe something regrading performance? Or perhaps it is just standard convention.
What I mean is what is the difference between doing:
int mymap[];
mymap["foo"] = "bar";
and:
int mymap[];
mymap.append("foo", "bar");
The first one seems to me like it's more concise than the second one. The behaviour does not seem to differ really, because when a key already exists, append overwrites the value, so therefor it should (?) work the exact same way as [].
Cheers!