ITexture:GetNumAnimationFrames
Just Added
This was just added in the latest version (2021.01.27). It might only be available on the Dev Branch right now.
Description
Returns the number of animation frames in this texture.
Returns
Example
local m = Material( "effects/prisonmap_disp" )
local t = m:GetTexture( "$basetexture" )
print( t:GetNumAnimationFrames() )
Output:
39