Class SpriteShape
SpriteShape contains the parameters that define how SpriteShape geometry is generated from a Spline.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.U2D
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.spriteshape@latest/index.html?subfolder=/manual/SSProfile.html")]
public class SpriteShape : ScriptableObject
Properties
angleRanges
List of AngleRanges.
Declaration
public List<AngleRange> angleRanges { get; set; }
Property Value
Type | Description |
---|---|
List<AngleRange> |
cornerSprites
Sprites to be used for corners.
Declaration
public List<CornerSprite> cornerSprites { get; set; }
Property Value
Type | Description |
---|---|
List<CornerSprite> |
fillOffset
Fill offset for the closed shape.
Declaration
public float fillOffset { get; set; }
Property Value
Type | Description |
---|---|
Single |
fillTexture
Fill Texture to be used for inner geometry in case of closed shapes. The Texture wrap mode should be set to Repeat.
Declaration
public Texture2D fillTexture { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
useSpriteBorders
Use borders of sprites when generating edge geometry.
Declaration
public bool useSpriteBorders { get; set; }
Property Value
Type | Description |
---|---|
Boolean |