API ReferenceSandbox.UI
public class Sandbox.UI.Image : Sandbox.UI.Panel
A generic box that displays a given texture within itself.
Related Guides
Broader workflow and conceptual references connected to this API.
Glyphs
Input glyphs are an easy way to show users which buttons to press for actions, they automatically adjust for whatever device you're using and return appropriate textures.
Style Properties
We try to keep as close to standard web styles as possible - but not every property is implemented. We'll use this page to highlight any differences.
Constructors
Showing 1 constructors
public Image()
No results match this filter.
Methods
Showing 3 methods
public virtual void OnDraw()
public virtual void SetProperty(string name, string value)
public void SetTexture(string name)
Set `Sandbox.UI.Image.Texture` from a file path. URLs supported.
No results match this filter.
Properties
Showing 1 properties
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.Image |