ITexture.GetName

From GMod Wiki

Jump to: navigation, search
Function
Syntax Texture:GetName( )
Description:
Gets the path of the texture.
Returns: String
In Object: iTexture
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=ITexture.GetName]ITexture.GetName [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionOutputs the name of the base Texture for the 1st players spray.
Used onNewerClient.png
Code
 Material( "Decals/playerlogo01" ):GetMaterialTexture( "$basetexture" ):GetName() 
Output"decals/YBlood1"
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox