Skip to content

raylib.IsTextureValid

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Check if a texture is valid (loaded in GPU)

Parameters

Parameter Default Value Note
texture

Return value

Condition Return Value
(always) number

Notes

Example

tex = raylib.LoadTexture("sprite.png")
if raylib.IsTextureValid(tex) then
    print "Texture loaded successfully"
    raylib.UnloadTexture tex
end if

Clone this wiki locally