# ViewportOptions

> An enum describing the viewport options to use when importing the SVG document.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.VectorGraphics](/engine/6000.5/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule

```csharp
public enum ViewportOptions
```

## Fields

| Value                                                                                                                | Description                                                     |
| -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [DontPreserve](/engine/6000.5/script-reference/unity/vectorgraphics/viewportoptions/dontpreserve.md)                 | Don't preserve the viewport defined in the SVG document.        |
| [OnlyApplyRootViewBox](/engine/6000.5/script-reference/unity/vectorgraphics/viewportoptions/onlyapplyrootviewbox.md) | Applies the root view-box defined in the SVG document (if any). |
| [PreserveViewport](/engine/6000.5/script-reference/unity/vectorgraphics/viewportoptions/preserveviewport.md)         | Preserves the viewport defined in the SVG document.             |
