s&box docs
API ReferenceSandbox.UI

public class Sandbox.UI.SvgPanel : Sandbox.UI.Panel

A generic panel that draws an SVG scaled to size

Constructors

Showing 1 constructors

Methods

Showing 2 methods

public virtual void FinalLayout(Vector2 offset)

public virtual void OnDraw()

Properties

Showing 2 properties

public string Sandbox.UI.SvgPanel.Color { get; set; }

Optional color to draw the SVG with

public string Sandbox.UI.SvgPanel.Src { get; set; }

Content path to the SVG file

Metadata

FieldValue
NamespaceSandbox.UI
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.UI.SvgPanel

On this page