Class SpriteShapeEditorUtility | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class SpriteShapeEditorUtility

    Inheritance
    System.Object
    SpriteShapeEditorUtility
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEditor.U2D
    Syntax
    public class SpriteShapeEditorUtility

    Fields

    kMaxSideSize

    Declaration
    public const float kMaxSideSize = 2F
    Field Value
    Type Description
    System.Single

    Methods

    CreateSpriteShapeAsset()

    Declaration
    public static SpriteShape CreateSpriteShapeAsset()
    Returns
    Type Description
    SpriteShape

    CreateSpriteShapeController()

    Declaration
    public static SpriteShapeController CreateSpriteShapeController()
    Returns
    Type Description
    SpriteShapeController

    CreateSpriteShapeControllerFromSelection()

    Declaration
    public static SpriteShapeController CreateSpriteShapeControllerFromSelection()
    Returns
    Type Description
    SpriteShapeController

    GetRangeIndexFromAngle(SpriteShape, Single)

    Declaration
    public static int GetRangeIndexFromAngle(SpriteShape spriteShape, float angle)
    Parameters
    Type Name Description
    SpriteShape spriteShape
    System.Single angle
    Returns
    Type Description
    System.Int32

    GetSpriteFromAngle(SpriteShape, Single, Int32)

    Declaration
    public static Sprite GetSpriteFromAngle(SpriteShape spriteShape, float angle, int variation)
    Parameters
    Type Name Description
    SpriteShape spriteShape
    System.Single angle
    System.Int32 variation
    Returns
    Type Description
    Sprite

    SetShapeFromAsset(SpriteShapeController)

    Declaration
    public static void SetShapeFromAsset(SpriteShapeController spriteShapeController)
    Parameters
    Type Name Description
    SpriteShapeController spriteShapeController
    Back to top
    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