| Parameter | Description |
|---|---|
| geoms | The list of tessellated Geometry instances |
| gradientResolution | The maximum size of the texture holding gradient data |
VectorImage A new VectorImage containing the provided geometry. The VectorImage may have a texture if the geometry has any texture and/or gradients
Builds a sprite asset from a scene tessellation.
It is the caller's responsibility to destroy the returned VectorImage using UnityEngine.Object.Destroy.
| Parameter | Description |
|---|---|
| sceneInfo | The SVGParser.SceneInfo to build the VectorImage from. |
VectorImage A VectorImage constructed from the vector scene definition.
Builds an antialiased VectorImage from a vector scene definition.
| Parameter | Description |
|---|---|
| sceneInfo | The SVGParser.SceneInfo to build the VectorImage from. |
| viewport | The viewport rectangle to preserve on the resulting VectorImage. The scene contents are positioned relative to the viewport origin, and the resulting VectorImage.size matches the viewport size. Pass Rect.zero to compute the viewport from the scene contents. |
VectorImage A VectorImage constructed from the vector scene definition.
Builds an antialiased VectorImage from a vector scene definition, preserving the specified viewport.
The viewport determines the size and offset of the resulting VectorImage, but does not clip its content: geometry falling outside the viewport is still included in the vertex data. To clip the scene to the viewport, assign a SceneNode.Clipper to SVGParser.SceneInfo.Scene's Scene.Root before calling this method.