Texture:getLayerCount
EditReturns the layer count of the Texture. 2D textures always have 1 layer and cubemaps always have a layer count divisible by 6. 3D and array textures have a variable number of layers.
layers = Texture:getLayerCount()
Arguments
None
Returns
Name | Type | Description |
layers | number | The layer count of the Texture. |