Garry's Mod Wiki

DSprite:SetMaterial

  DSprite:SetMaterial( IMaterial material )

Description

Sets the source material for the sprite.

Arguments

1 IMaterial material
The material to use. This will ideally be an UnlitGeneric.