DImage.SetMaterial
From GMod Wiki
| | |
| DImage:SetMaterial is an internal function. This means you will be able to call it, but you really shouldn't. | |
| Function | |
| Syntax | DImage:SetMaterial( Material material ) |
| Description: | |
| Sets the image for this panel to display. | |
| Returns: | nil |
| In Object: | DImage |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DImage.SetMaterial]DImage.SetMaterial [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Additional Notes
- It's prefered to use DImage.SetImage instead of this function, since DImage.SetImage converts the material to the correct format (UnlitGeneric, with VertexColor and VertexAlpha enabled).