Garry's Mod Wiki

CreateSprite

  Panel CreateSprite( IMaterial material )

Description

Creates and returns a new DSprite element with the supplied material.

Arguments

1 IMaterial material
Material the sprite should draw.

Returns

1 Panel
The new DSprite element.