Enum ViewportOptions
An enum describing the viewport options to use when importing the SVG document.
Namespace: Unity.VectorGraphics
Syntax
public enum ViewportOptions
Fields
| Name | Description | Value |
|---|---|---|
| DontPreserve | Don't preserve the viewport defined in the SVG document. |
0 |
| PreserveViewport | Preserves the viewport defined in the SVG document. |
1 |
| OnlyApplyRootViewBox | Applies the root view-box defined in the SVG document (if any). This option will rescale the SVG asset to a unit size if a view-box is defined in the SVG document.
If no view-box is defined, this option will have the same behavior as |
2 |