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

    Class EditorSpriteGUIUtility

    Inheritance
    System.Object
    EditorSpriteGUIUtility
    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 static class EditorSpriteGUIUtility

    Properties

    spriteMaterial

    Declaration
    public static Material spriteMaterial { get; }
    Property Value
    Type Description
    Material

    Methods

    DrawMesh(Mesh, Material, Vector3, Quaternion, Vector3)

    Declaration
    public static void DrawMesh(Mesh mesh, Material material, Vector3 position, Quaternion rotation, Vector3 scale)
    Parameters
    Type Name Description
    Mesh mesh
    Material material
    Vector3 position
    Quaternion rotation
    Vector3 scale

    DrawSpriteInRectPrepare(Rect, Sprite, EditorSpriteGUIUtility.FitMode, Boolean, Boolean, Mesh)

    Declaration
    public static void DrawSpriteInRectPrepare(Rect rect, Sprite sprite, EditorSpriteGUIUtility.FitMode fitMode, bool excludeBorders, bool forceQuad, Mesh mesh)
    Parameters
    Type Name Description
    Rect rect
    Sprite sprite
    EditorSpriteGUIUtility.FitMode fitMode
    System.Boolean excludeBorders
    System.Boolean forceQuad
    Mesh mesh

    GetOriginalSpriteTexture(Sprite)

    Declaration
    public static Texture GetOriginalSpriteTexture(Sprite sprite)
    Parameters
    Type Name Description
    Sprite sprite
    Returns
    Type Description
    Texture

    GetOriginalSpriteUvs(Sprite)

    Declaration
    public static Vector2[] GetOriginalSpriteUvs(Sprite sprite)
    Parameters
    Type Name Description
    Sprite sprite
    Returns
    Type Description
    Vector2[]
    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