docs.unity.cn
    Show / Hide Table of Contents

    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 DontPreserve. It has limited use and is only available for legacy reasons.

    2
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Wednesday, April 19, 2023
    Terms of use