ITexture.GetActualWidth
From GMod Wiki
Function | |
Syntax | ITexture:GetActualWidth( ) |
Description: | |
Get a VTF's width in pixels. | |
Returns: | Integer |
In Object: | ITexture |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=ITexture.GetActualWidth]ITexture.GetActualWidth [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Get a texture's width |
---|---|
Used on | |
Code | Material( "Decals/playerlogo01" ):GetMaterialTexture( "$basetexture" ):GetActualWidth() |
Output | 64 |