ITexture.GetActualWidth

From GMod Wiki

Jump to: navigation, search
Function
Syntax ITexture:GetActualWidth( )
Description:
Get a VTF's width in pixels.
Returns: Integer
In Object: ITexture
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=ITexture.GetActualWidth]ITexture.GetActualWidth [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGet a texture's width
Used onNewerClient.png
Code
 
Material( "Decals/playerlogo01" ):GetMaterialTexture( "$basetexture" ):GetActualWidth()
 
Output64
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox