- Code: Select all
PlayerIO.BigDB.Load("tableName", "objectKey", delegate(DatabaseObject result)
{
result.GetArray("arrayName").Add(someItemToAdd);
result.Save();
});
the object already has the database array with the proper name. As I have the code now, it will add one item to the array, but only one. After that I cant get it to put any more items it.
and while I'm here, I have two other questions:
is there a way to shrink a database array by shifting everything down so there are no empty spaces?
is there a way to add to the first available empty space?