This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

SpriteShapeSegment

struct in UnityEngine.Experimental.U2D

Description

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

Properties

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.