Garry's Mod Wiki

ITexture:GetNumAnimationFrames

ITexture:GetNumAnimationFrames

  number ITexture:GetNumAnimationFrames()

Description

Returns the number of animation frames in this texture.

Returns

1 number
The number of animation frames in this texture.

Example

local m = Material( "effects/prisonmap_disp" ) local t = m:GetTexture( "$basetexture" ) print( t:GetNumAnimationFrames() )
Output: 39

Special Pages


Wikis

?

Render Time: 65ms

DB GetPage 49
Generate Html 1
SaveChanges (1) 5
Render Body 0
Render Sidebar 6