GenerateAtlas(IEnumerable<Geometry>, uint, bool, bool, bool)
Generates a Texture2D atlas containing the textures and gradients for the vector geometry.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static VectorUtils.TextureAtlas GenerateAtlas(IEnumerable<VectorUtils.Geometry> geoms, uint rasterSize, bool generatePOTTexture = true, bool encodeSettings = true, bool linear = true)
Parameters
The list of Geometry objects, probably created with TessellateNodeHierarchy
Maximum size of the generated texture
Resize the texture to the next power-of-two
Encode the gradient settings inside the texture
If true, the texture will be created in linear colorspace
Returns
Type | Description |
|---|---|
| TextureAtlas | The generated texture atlas |