docs.unity3d.com
    Show / Hide Table of Contents

    Class SortingLayerHelper

    Inheritance
    System.Object
    SortingLayerHelper
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: TMPro
    Syntax
    public static class SortingLayerHelper

    Properties

    sortingLayerNames

    Declaration
    public static string[] sortingLayerNames { get; }
    Property Value
    Type Description
    System.String[]

    Methods

    GetSortingLayerIDForIndex(Int32)

    Declaration
    public static int GetSortingLayerIDForIndex(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Int32

    GetSortingLayerIDForName(String)

    Declaration
    public static int GetSortingLayerIDForName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Int32

    GetSortingLayerNameFromID(Int32)

    Declaration
    public static string GetSortingLayerNameFromID(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    System.String
    Back to top
    Copyright © 2025 Unity Technologies
    • 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 02 April 2025