Parameter | Description |
---|---|
geoms | The list of tessellated Geometry instances |
svgPixelsPerUnit | How many SVG "pixels" map into a Unity unit |
alignment | The position of the sprite origin |
customPivot | If alignment is Alignment.Custom, customPivot is used to compute the sprite origin |
gradientResolution | The maximum size of the texture holding gradient data |
flipYAxis | True to have the positive Y axis to go downward. |
Sprite A new Sprite containing the provided geometry. The Sprite may have a texture if the geometry has any texture and/or gradients
Builds a sprite asset from a scene tessellation.
Parameter | Description |
---|---|
geoms | The list of tessellated Geometry instances |
rect | The position and size of the sprite geometry |
svgPixelsPerUnit | How many SVG "pixels" map into a Unity unit |
alignment | The position of the sprite origin |
customPivot | If alignment is Alignment.Custom, customPivot is used to compute the sprite origin |
gradientResolution | The maximum size of the texture holding gradient data |
flipYAxis | True to have the positive Y axis to go downward. |
Sprite A new Sprite containing the provided geometry. The Sprite may have a texture if the geometry has any texture and/or gradients
Builds a sprite asset from a scene tessellation.