Unity - Scripting API: SVGType
enumeration
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
An enum describing how SVG files are imported.
Properties
| Property | Description |
|---|---|
| VectorSprite | The SVG file will be imported as a tessellated sprite |
| TexturedSprite | The SVG file will be imported as a textured sprite |
| Texture2D | The SVG file will be imported as a Texture2D |
| VectorImage | The SVG file will be imported as a UI Toolkit Vector Image asset |
| UISVGImage | The SVG file will be imported as a tessellated sprite, compatible with the UI canvas masking system |