Garry's Mod Wiki

Revision Difference

ITexture:GetNumAnimationFrames#528906

<function name="GetNumAnimationFrames" parent="ITexture" type="classfunc"> <description>Returns the number of animation frames in this texture.</description> <realm>Shared</realm> <added>2020.11.18</added> <rets> <ret name="" type="number">The number of animation frames in this texture.</ret> </rets> </function> ⤶ <example>⤶ <code>⤶ local m = Material( "effects/prisonmap_disp" )⤶ local t = m:GetTexture( "$basetexture" )⤶ print( t:GetNumAnimationFrames() )⤶ </code>⤶ <output>`39`</output>⤶ </example>