- (VGB-13) Fixed incorrect VectorImage gradient texture Format in linear project.
- (VGB-15) Fixed SVG Image Data is not parsed when importing SVG files with binary data that has a MIME type of image/PNG.
- Fixed RenderSpriteToTexture2D not working in builds because of wrong shader name
- Fixed bad interaction between alpha-demultiplication and edge expansions
- Fixed textured sprites edge artifacts [VGB-9]
- Fixed flags parsing in paths [VGB-5]
- Added support to preserve viewport when importing in UI Toolkit Vector Image [VGB-3]
- Remove forced keyword ETC1_EXTERNAL_ALPHA in Unlit/Vector materials [UUM-836 > UUM-10248]
- Fixed gradient instructions used in for-loop shader warnings
- Fixed broken alpha-blending when importing in textured asset [VGB-1]
- Fixed textured sprite alpha issue (case 1411243).
- Fixed gradient fill type after cloning.
- Added HSL color support.
- Fixed SVGImage content not updating because of missing CanvasRenderer
- Fixed wrong path winding order, causing masking issues with UI Toolkit.
- Fixed support for '+' prefix in path definition (used by Vectornator)
- Fixed missing stats over vector sprite asset preview
- Fixed null-reference exception occurring in IL2CPP builds
- Fixed prefab transform reset during asset rename
- Added missing dependencies in package.json
- Fixed path arcs when the sweep angle is very small
- Sanitized tessellation options to prevent infinite loops
- Moved SVGImage/SVGImageEditor to the Unity.VectorImage namespace
- Renamed UIElements assets to UI Toolkit assets
- Added support for rgba() colors
- Fixed WebGL unrepresentable float error during segment length evaluation
- Fixed image fills not working when defined later in the file
- Added a "Textured Sprite" option to use the SVG's pixels per unit instead of the texture
- Fixed gradients not showing properly on Metal
- Prevent hang while evaluating segment length with large coordinates
- Fixed CSS class used on root svg element
- Properly handling referenced stop data defined later in the file
- Fixed alpha blending for UI shaders
- Fixed path corners in polygon definitions
- Added support for RectMask2D
- Fixed sRGB support for UI shaders
- Fixed unmatched BeginSample/EndSample in GenerateAtlas()
- Fixed invalid VectorExpandEdges.shader path
- Added "uGUI SVGImage" asset type, which sets the proper stencil state for uGUI's masking system
- Fixed VectorImage winding order
- Fixed LibTess preprocessor-dependent namespaces
- Gradient support for strokes
- Changed default gradient resolution from 128 -> 64 pixels to help batching with UIElements renderer
- Using serializable VectorImageVertex (only works on 2019.3b4 and later)
- Fixed pivot wrongly computed on textured sprites when SVG origin alignement is selected (case 1172332)
- Added preserve aspect ratio in SVGImage
- Fixed ArgumentOutOfRangeException when closing paths with not enough segments
- Fixed textured-sprite import issue after a full project reimport
- Added a new asset import type (UIElements Vector Image) for upcoming UIElements support in Unity 2019.3.
- Fixed 'T' path instruction not computing the proper reflected control point
There are some breaking changes when going from 1.0.0-preview
to 2.0.0-preview
:
- The deprecated API have been removed. Most notably, the removal of the
IDrawable
interface. - The texture atlas layout for the gradient settings was changed. It now stores gradient settings in the first 3 columns of the atlas instead of the first row. This allows for a more efficient atlas packing. If you made a variant of the
Unlit/VectorGradient
shader, you may have to update it. - The
SVGImporter
will now ignore the rootviewBox
attribute by default. Use the "Only Apply Root ViewBox" viewport option to bring back the old behavior.
- Fixed flipYAxis in FillMesh API
- Removed unused variable to fix warning
- Importing SVG from editor code allows local Texture2D references
- URL scheme whitelisting on image tags
- Using next power-of-two texture size, fixes gradient issues on some Android devices
- Fixed pivot not being applied on textured sprite assets
- Fixed SVGParser rotation center in transforms
- Applying material's color in VectorGradient.shader
- Fixed duplicated points causing issues with polygons
- Added repository information to package.json
- Deprecating Matrix2D.Rotate in favor of RotateRH and RotateLH
- Added support for gradient fills defined later in the file
- Fixed invalid SVG pen position when 'z' command occurs after 'm'
- Proper support for styling in symbols
- Fixed precision issues with dashed strokes
- Fixed modifying node hierarchy while iterating through it
- Fixed CSS data parsing
- Clearing temp render texture when expanding edges
- Fixed instancing for gradient shader
- Added support for borders (slices) for textured sprites
- SVGImageEditor is now fallback custom editor
- Fixed viewport clipping working when viewBox is applied
- Fixed dark outlines when rendering to texture
- Fixed alpha-blending in VectorGradient.shader
- Silenced obsolete warnings because of WWW usage
- Removed "Per-Axis" texture wrap mode
- Fixed sprite value not being set in SVGImage's sprite property
- Using viewBox for relative coordinates, when available
- Fixed issue with gradient user-units when no viewBox is specified
- Improved texture import editor. Better basic tessellation defaults.
- Enabled GPU instancing, _RendererColor works out-of-the-box
- Made the auto-computed tessellation options less aggressive
- Allowing different width/height when importing to a texture
- Moved external libraries to their own namespaces
- Moved the sprite stats over the preview
- Filling atlas with opaque black to help with SVG sprite picking
- Support for sample count (for import-to-texture)
- Setting DtdProcessing to ignore
- Fixed flipped winding order when flipYAxis is false
- Fixed SVGImageEditor for 2018.1
- Support for sprite mesh type on textured sprites
- Node-by-id support
- Added SVGImage for Canvas UI
- Preserve viewport option
- Support for auto-generate physics outline
- Setting Closed=true closes the path connecting the last segment to the first instead of a straight line
- First iteration of "import to texture" feature
- Deprecated Rectangle, Path, Filled and IDrawable. Only Shape remains.
- Improved SVGOrigin and pivot support
- Added support for flipYAxis in FillMesh method
- Multiple object editing improvements
- Fixed relative positioning with viewBox
- Fixed elliptical-arc-to error with large sweep angles
- Fixed polygon winding after transform
- Fixed
<use>
always overriding fill/stroke even when not set - Fixed "ProhibitDtd" obsolete warning on .NET 4.x backend
- Fixed issues with symbols and patterns usage
- Fixed support for empty 'd' elements
- Fixed issue when symbols are defined after
<use>
- Fixed invalid SVG Origin when Y-axis is fipped
- Fixed sprite editor align/pivot to not interfere with SVG origin value
- Fixed missing Apply() after atlas generation
- Updated CHANGELOG.md
- Added QuadraticToCubic helper method
- Taking pixels-per-unit into account to compute tessellation settings
- Fixed rgb() color attributes not parsed properly
- Early exit when trying to tessellate paths without enough segments
- Fixed viewbox computation that were lost during tessellation
- Fixed namespace issues with 2018.3+
- Skip stroke tessellation if the width is 0
- Showing imported sprites stats
- Elements with display:none are not displayed anymore
- Fixed parse issue when loading an unsupported texture from the image tag
- Using culture invariant float parsing
- Fixed import error when using percentage sizes in svg tag
- Fixed some precision issues
- More conservative processing of 'none' for 'stroke-dasharray'
- Revert "Fixed handling of 'none' styles"
- Adjusting the triangle's winding order after scene tessellation
- Renamed Third-Party Notices
- Fixed handling of 'none' styles
- Support for multiple SVG editing
- Updated documentation after docs team revision
- Optimized path for convex shapes
- Fixed SVG StreamReader not being closed
- Fixed polyline corners
- Physics outline fixes and using preview texture for Sprite Editor, when available
- Improved sampling step distance tooltip text
- Removed skin-based animation tools
- Added Third-Party Notices
- Added MakeArc_MakesArcInClockwiseDirection test
- MakeArc now returns a BezierPathSegment[] instead of BezierSegment[]. Added BezierSegmentsToPath API.
- Using the new code naming conventions (CamelCase for properties)
- Exposed BuildRectangleContour API
- Moved SVGParser to Unity.VectorGraphics namespace
- Initial release