ドキュメント

Unity Engine

Unity Engine

GenerateSpriteShape(SpriteShapeRenderer, SpriteShapeParameters, ShapeControlPoint[], SpriteShapeMetaData[], AngleRangeInfo[], Sprite[], Sprite[])

Generate a mesh based on input parameters.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine.U2D
  • Assembly: UnityEngine.SpriteShapeModule
public static void GenerateSpriteShape(SpriteShapeRenderer renderer, SpriteShapeParameters shapeParams, ShapeControlPoint[] points, SpriteShapeMetaData[] metaData, AngleRangeInfo[] angleRange, Sprite[] sprites, Sprite[] corners)

Parameters

SpriteShapeRenderer to which the generated geometry is fed to.

Input parameters for the SpriteShape tessellator.

A list of control points that describes the shape.

Additional data about the shape's control point. This is useful during tessellation of the shape.

A parameter that determins how to tessellate each of the edge.

sprites

The list of Sprites that could be used for the edges.

corners

The list of Sprites that could be used for the corners.