Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...