docs.unity3d.com
    Show / Hide Table of Contents

    Class SpriteShape

    SpriteShape contains the parameters that define how SpriteShape geometry is generated from a Spline.

    Inheritance
    Object
    Object
    ScriptableObject
    SpriteShape
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    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
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023