Version: 2022.3
LanguageEnglish
  • C#

SpriteShapeParameters

struct in UnityEngine.U2D

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Input parameters for the SpriteShape tessellator.

Properties

adaptiveUVIf enabled, the tessellator will adapt the size of the quads based on the height of the edge.
angleThresholdThe threshold of the angle that indicates whether it is a corner or not.
bevelCutoffThe threshold of the angle that decides if it should be tessellated as a curve or a corner.
bevelSizeThe radius of the curve to be tessellated.
borderPivotThe local displacement of the Sprite when tessellated.
carpetIf true, the Shape will be tessellated as a closed form.
fillScaleThe scale to be used to calculate the UVs of the fill texture.
fillTextureThe texture to be used for the fill of the SpriteShape.
smartSpriteIf enabled the tessellator will consider creating corners based on the various input parameters.
splineDetailThe tessellation quality of the input Spline that determines the complexity of the mesh.
spriteBordersThe borders to be used for calculating the uv of the edges based on the border info found in Sprites.
stretchUVStretch the UV mapping for the Fill texture.
transformThe world space transform of the GameObject used for calculating the UVs of the Fill texture.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961