Class SVGImage
A UI image that holds SVG content.
Inherited Members
Namespace: Unity.VectorGraphics
Assembly: solution.dll
Syntax
[AddComponentMenu("UI/SVG Image", 11)]
[MovedFrom("")]
[RequireComponent(typeof(CanvasRenderer))]
public class SVGImage : MaskableGraphic, ICanvasElement, IClippable, IMaskable, IMaterialModifier
Properties
Name | Description |
---|---|
mainTexture | The main texture of the SVG image. This will be a white texture for textureless images. |
preserveAspect | If true, preserves the aspect ratio of the SVG image. |
sprite | The sprite that is used to render this image. |
Methods
Name | Description |
---|---|
OnPopulateMesh(VertexHelper) | Populates the mesh |