DSprite.SetMaterial

From GMod Wiki

Jump to: navigation, search
Function
Syntax DSprite:SetMaterial( Material Material )
Description:
Sets material of a DSprite.
Returns: nil
In Object: DSprite
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DSprite.SetMaterial]DSprite.SetMaterial [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets material of a DSprite.
Used onNewerClient.png
Code
local DSprite = vgui.Create("DSprite")
DSprite:SetSize(50, 200)
DSprite:SetPos(300,400)
DSprite:SetMaterial( Material( "hunter/mywindow" ) )
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox