Class SpriteShapeUtility
Inherited Members
Namespace: UnityEngine.Experimental.U2D
Assembly: UnityEngine.dll
Syntax
public class SpriteShapeUtility
Methods
Generate(Mesh, SpriteShapeParameters, ShapeControlPoint[], SpriteShapeMetaData[], AngleRangeInfo[], Sprite[], Sprite[])
Declaration
public static int[] Generate(Mesh mesh, SpriteShapeParameters shapeParams, ShapeControlPoint[] points, SpriteShapeMetaData[] metaData, AngleRangeInfo[] angleRange, Sprite[] sprites, Sprite[] corners)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | |
SpriteShapeParameters | shapeParams | |
ShapeControlPoint[] | points | |
SpriteShapeMetaData[] | metaData | |
AngleRangeInfo[] | angleRange | |
Sprite[] | sprites | |
Sprite[] | corners |
Returns
Type | Description |
---|---|
Int32[] |
GenerateSpriteShape(SpriteShapeRenderer, SpriteShapeParameters, ShapeControlPoint[], SpriteShapeMetaData[], AngleRangeInfo[], Sprite[], Sprite[])
Declaration
public static void GenerateSpriteShape(SpriteShapeRenderer renderer, SpriteShapeParameters shapeParams, ShapeControlPoint[] points, SpriteShapeMetaData[] metaData, AngleRangeInfo[] angleRange, Sprite[] sprites, Sprite[] corners)
Parameters
Type | Name | Description |
---|---|---|
SpriteShapeRenderer | renderer | |
SpriteShapeParameters | shapeParams | |
ShapeControlPoint[] | points | |
SpriteShapeMetaData[] | metaData | |
AngleRangeInfo[] | angleRange | |
Sprite[] | sprites | |
Sprite[] | corners |