Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Declaration
public static
UIElements.VectorImage BuildVectorImage(System.Collections.Generic.IEnumerable<Unity.VectorGraphics.VectorUtils/Geometry>
geoms,
UInt32
gradientResolution);
Parameters
| Parameter |
Description |
| geoms |
The list of tessellated Geometry instances |
| gradientResolution |
The maximum size of the texture holding gradient data |
Returns
UIElements.VectorImage
A new VectorImage containing the provided geometry.
The VectorImage may have a texture if the geometry has any texture and/or gradients
Description
Builds a sprite asset from a scene tessellation.
It is the caller's responsibility to destroy the returned VectorImage using UnityEngine.Object.Destroy.
Parameters
| Parameter |
Description |
| sceneInfo |
The SVGParser.SceneInfo to build the VectorImage from. |
Returns
UIElements.VectorImage
A VectorImage constructed from the vector scene definition.
Description
Builds an antialiased VectorImage from a vector scene definition.