{{newin (日本語)|[[11.0 (日本語)|11.0]]|110|type=関数}}
Gets the number of layers / slices in an [[TextureType|Array Texture]]. Returns 1 for 2D, Cubemap, and Volume textures.
== 関数 ==
=== 概要 ===
<source lang="lua">
layers = Texture:getLayerCount( )
</source>
=== 引数 ===
なし。
=== 返値 ===
{{param (日本語)|number|layers|The number of layers in the Array Texture.}}
== 関連 ==
* [[parent::Texture (日本語)]]
* [[love.graphics.newArrayImage (日本語)]]
* [[love.graphics.newCanvas (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Gets the number of layers / slices in an [[TextureType|Array Texture]].}}
== そのほかの言語 ==
{{i18n (日本語)|Texture:getLayerCount}}