Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SpriteShapeSegment

SpriteShapeSegment contains info of sub-meshes generated by the SpriteShape generator C# Job later fed to SpriteShapeRenderer.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Struct
  • Namespace: UnityEngine.U2D
  • Assembly: UnityEngine.SpriteShapeModule
public struct SpriteShapeSegment

Properties

Property

Description

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.