SpriteShapeSegment

struct in UnityEngine.U2D

Switch to Manual

Description

SpriteShapeSegment contains info of sub-meshes generated by the SpriteShape generator C# Job later fed to SpriteShapeRenderer.

Variables

geomIndexGeometry index of list of sub-meshes generated by SpriteShape.
indexCountIndex count of SpriteShape sub-mesh.
spriteIndexIndex of sprite that is used to generate segment/corner for this SpriteShapeSegment.
vertexCountVertex count of SpriteShape sub-mesh.