# SVGImporter

> The SVG importer class.

## Definition

* **Type:** Class
* **Namespace:** [Unity.VectorGraphics.Editor](/engine/6000.7/script-reference/unity/vectorgraphics/editor.md)
* **Assembly:** UnityEditor
* **Inherits from:** [ScriptedImporter](/engine/6000.7/script-reference/unityeditor/assetimporters/scriptedimporter.md)

```csharp
[HelpURL("ui-systems/work-with-vector-graphics")]
[ScriptedImporter(9, "svg")]
public sealed class SVGImporter : ScriptedImporter
```

## Properties

| Property                                                                                                                          | Description                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [AdvancedMode](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/advancedmode.md)                           | Use advanced settings.                                                                                      |
| [Alignment](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/alignment.md)                                 | The SVG sprite alignement.                                                                                  |
| [CustomPivot](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/custompivot.md)                             | The custom pivot, when alignement is "Custom".                                                              |
| [FilterMode](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/filtermode.md)                               | The filter mode of the texture (only used when importing to a texture).                                     |
| [GeneratePhysicsOutline](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/generatephysicsoutline.md)       | Automatically generates a physics outline.                                                                  |
| [GradientResolution](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/gradientresolution.md)               | Maximum resolution for gradient texture.                                                                    |
| [KeepTextureAspectRatio](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/keeptextureaspectratio.md)       | The size of the texture (only used when importing to a texture).                                            |
| [MaxCordDeviation](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/maxcorddeviation.md)                   | Distance on the cord to a straight line between two points after which more tessellation will be generated. |
| [MaxCordDeviationEnabled](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/maxcorddeviationenabled.md)     | Enables the "max coord deviation" constraint.                                                               |
| [MaxTangentAngle](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/maxtangentangle.md)                     | Max tangent angle (in degrees) after which more tessellation will be generated.                             |
| [MaxTangentAngleEnabled](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/maxtangentangleenabled.md)       | Enables the "max tangent angle" constraint.                                                                 |
| [PredefinedResolutionIndex](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/predefinedresolutionindex.md) | The predefined resolution used, when not in advanced mode.                                                  |
| [PreserveSVGImageAspect](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/preservesvgimageaspect.md)       | When importing to an SVGImage, preserves the aspect ratio of the generated sprite.                          |
| [ResolutionMultiplier](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/resolutionmultiplier.md)           | An additional scale factor on the target resolution.                                                        |
| [SampleCount](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/samplecount.md)                             | The number of samples per pixel (only used when importing to a texture).                                    |
| [SamplingStepDistance](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/samplingstepdistance.md)           | Number of samples evaluated on paths.                                                                       |
| [StepDistance](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/stepdistance.md)                           | The uniform step distance used for tessellation.                                                            |
| [SvgPixelsPerUnit](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/svgpixelsperunit.md)                   | The number of pixels per Unity units.                                                                       |
| [SvgType](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/svgtype.md)                                     | How the SVG file will be imported                                                                           |
| [TargetResolution](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/targetresolution.md)                   | The target resolution on which this SVG is displayed.                                                       |
| [TessellationMode](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/tessellationmode.md)                   | The serialization mode used when importing the SVG document.                                                |
| [TexturedSpriteMeshType](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/texturedspritemeshtype.md)       | For textured sprite, the mesh type                                                                          |
| [TextureHeight](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/textureheight.md)                         | The height of the texture (only used when importing to a texture).                                          |
| [TextureSize](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/texturesize.md)                             | The size of the texture (only used when importing to a texture with "keep aspect ratio").                   |
| [TextureWidth](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/texturewidth.md)                           | The width of the texture (only used when importing to a texture).                                           |
| [UseSVGPixelsPerUnit](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/usesvgpixelsperunit.md)             | When importing as a textured sprite asset, uses the SVG size to compute the pixels per unit.                |
| [ViewportOptions](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/viewportoptions.md)                     | Viewport options to use when importing the SVG document.                                                    |
| [WrapMode](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/wrapmode.md)                                   | The wrap mode of the texture (only used when importing to a texture).                                       |

## Methods

| Method                                                                                                    | Description          |
| --------------------------------------------------------------------------------------------------------- | -------------------- |
| [OnImportAsset](/engine/6000.7/script-reference/unity/vectorgraphics/editor/svgimporter/onimportasset.md) | Imports an SVG asset |

## Inheritance

**Inherited Members:**

* [ScriptedImporter.SupportsRemappedAssetType(Type)](/engine/6000.7/script-reference/unityeditor/assetimporters/scriptedimporter/supportsremappedassettype.md)
* [AssetImporter.GetImportLog(string)](/engine/6000.7/script-reference/unityeditor/assetimporter/getimportlog.md)
* [AssetImporter.SetAssetBundleNameAndVariant(string, string)](/engine/6000.7/script-reference/unityeditor/assetimporter/setassetbundlenameandvariant.md)
* [AssetImporter.GetAtPath(string)](/engine/6000.7/script-reference/unityeditor/assetimporter/getatpath.md)
* [AssetImporter.SaveAndReimport()](/engine/6000.7/script-reference/unityeditor/assetimporter/saveandreimport.md)
* [AssetImporter.AddRemap(SourceAssetIdentifier, Object)](/engine/6000.7/script-reference/unityeditor/assetimporter/addremap.md)
* [AssetImporter.RemoveRemap(SourceAssetIdentifier)](/engine/6000.7/script-reference/unityeditor/assetimporter/removeremap.md)
* [AssetImporter.GetExternalObjectMap()](/engine/6000.7/script-reference/unityeditor/assetimporter/getexternalobjectmap.md)
* [AssetImporter.assetPath](/engine/6000.7/script-reference/unityeditor/assetimporter/assetpath.md)
* [AssetImporter.importSettingsMissing](/engine/6000.7/script-reference/unityeditor/assetimporter/importsettingsmissing.md)
* [AssetImporter.userData](/engine/6000.7/script-reference/unityeditor/assetimporter/userdata.md)
* [AssetImporter.assetBundleName](/engine/6000.7/script-reference/unityeditor/assetimporter/assetbundlename.md)
* [AssetImporter.assetBundleVariant](/engine/6000.7/script-reference/unityeditor/assetimporter/assetbundlevariant.md)
* [Object.GetEntityId()](/engine/6000.7/script-reference/unityengine/object/getentityid.md)
* [Object.GetHashCode()](/engine/6000.7/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.7/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.7/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.7/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.7/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.7/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type)](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type\))
* [Object.FindObjectsByType(Type, FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.7/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindAnyObjectByType\<T>()](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindObjectsByType\<T>()](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.7/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.7/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.7/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.7/script-reference/unityengine/object/hideflags.md)

### Operators

| Operator                                                                           | Description                                                             |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [operator ==](/engine/6000.7/script-reference/unityengine/object/op-equality.md)   | Compares two object references to see if they refer to the same object. |
| [bool](/engine/6000.7/script-reference/unityengine/object/op-implicit.md)          | Determines whether the object exists.                                   |
| [operator !=](/engine/6000.7/script-reference/unityengine/object/op-inequality.md) | Compares if two objects refer to a different object.                    |
