texture.type

类型 字符串
对象 TextureResource
graphics.*
修订版本 版本 2024.3703
另请参阅 texture.filename
texture.baseDir
TextureResource

概述

此属性指示纹理的类型。

示例

local texture1 = graphics.newTexture( { type="image", filename="background.png" } )
print( texture1.type )  --> "image"
local texture2 = graphics.newTexture( { type="canvas", width=128, height=128 } )
print( texture2.type )  --> "canvas"