Garry's Mod Wiki

ITexture:GetNumAnimationFrames

number 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

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

Page Links


Special Pages


Wikis

?

Render Time: 148ms

DB GetPage 65
Generate Html 2
SaveChanges (1) 64
Render Body 0
Render Sidebar 13