I am trying to create an image programmatically in C#. I create an Godot array of images:
Godot.Collections.Array<Image> images = new Godot.Collections.Array<Image>();
I instantiate the Godot Cubemap object
Cubemap CMtex = new Cubemap();
Then an populate the array with the 6 faces of the cube map (sideCtr = 0 to 5)
images[sideCtr] = oneSide;
Then I assign the image array to CMtex
CMtex.CreateFromImages(images);
But this is not working. The cube map .tres file gets created in the filesystem but there appears to be no pixel data and the size of the image is incorrect.
Any ideas?