Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
Inherits: TextureLayered < Texture < Resource < RefCounted < Object
Inherited By: Cubemap, CubemapArray, Texture2DArray
Base class for texture types which contain the data of multiple ImageTextures. Each image is of the same size and format.
Base class for Texture2DArray, Cubemap and CubemapArray. Cannot be used directly, but contains all the functions necessary for accessing the derived resource types. See also Texture3D.
create_from_images ( Image images )
update_layer ( Image image, int layer )
Error create_from_images ( Image images )
Creates an ImageTextureLayered from an array of Images. See Image.create for the expected data format. The first image decides the width, height, image format and mipmapping setting. The other images must have the same width, height, image format and mipmapping setting.
Each Image represents one
void update_layer ( Image image, int layer )
Replaces the existing Image data at the given
layer with this new image.
The given Image must have the same width, height, image format and mipmapping setting (a
bool value) as the rest of the referenced images.
If the image format is unsupported, it will be decompressed and converted to a similar and supported Format.
The update is immediate: it's synchronized with drawing.