There was an error while loading. Please reload this page.
Retrieve the size of a texture.
texture:GetSize() -> size: Vec2
texture:GetSize
Vec2
size
A simple script which loads a texture and print its size.
local texture = assets.GetTexture("texture.png") if (texture) then print("Texture size", texture:GetSize()) else print("Texture couldn't be loaded") end