기술 자료

Unity Engine

Unity Engine

GenerateAtlas(IEnumerable<Geometry>, uint, bool, bool, bool)

Generates a Texture2D atlas containing the textures and gradients for the vector geometry.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

rasterSize

Maximum size of the generated texture

generatePOTTexture

Resize the texture to the next power-of-two

encodeSettings

Encode the gradient settings inside the texture

linear

If true, the texture will be created in linear colorspace

Returns

Type

Description

TextureAtlasThe generated texture atlas