Class SpriteShape
SpriteShape contains the parameters that define how SpriteShape geometry is generated from a Spline.
Inherited Members
      Object.FindObjectsByType<T>(FindObjectsSortMode)
    
    
    
      Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    
    
    
    
      Object.FindFirstObjectByType<T>()
    
    
      Object.FindAnyObjectByType<T>()
    
    
      Object.FindFirstObjectByType<T>(FindObjectsInactive)
    
    
      Object.FindAnyObjectByType<T>(FindObjectsInactive)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  Namespace: UnityEngine.U2D
Assembly: Unity.2D.SpriteShape.Runtime.dll
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 | 
|---|---|
| float | 
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 | 
|---|---|
| bool |