Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

VectorUtils.BuildVectorImage

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

Cancel

Declaration

public static UIElements.VectorImage BuildVectorImage(IEnumerable<Geometry> geoms, uint gradientResolution);

Parameters

Parameter Description
geoms The list of tessellated Geometry instances
gradientResolution The maximum size of the texture holding gradient data

Returns

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.


Declaration

public static UIElements.VectorImage BuildVectorImage(Unity.VectorGraphics.SVGParser.SceneInfo sceneInfo);

Parameters

Parameter Description
sceneInfo The SVGParser.SceneInfo to build the VectorImage from.

Returns

VectorImage A VectorImage constructed from the vector scene definition.

Description

Builds an antialiased VectorImage from a vector scene definition.