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

    Class DisplayUnits

    Inheritance
    System.Object
    DisplayUnits
    Namespace: UnityEditor.Performance.ProfileAnalyzer
    Syntax
    public class DisplayUnits

    Constructors

    DisplayUnits(Units)

    Declaration
    public DisplayUnits(Units units)
    Parameters
    Type Name Description
    Units units

    Fields

    UnitNames

    Declaration
    public static readonly string[] UnitNames
    Field Value
    Type Description
    System.String[]

    Units

    Declaration
    public readonly Units Units
    Field Value
    Type Description
    Units

    UnitValues

    Declaration
    public static readonly int[] UnitValues
    Field Value
    Type Description
    System.Int32[]

    Methods

    GetSIUnitString(Int32)

    Declaration
    public string GetSIUnitString(int unitPower)
    Parameters
    Type Name Description
    System.Int32 unitPower
    Returns
    Type Description
    System.String

    Postfix()

    Declaration
    public string Postfix()
    Returns
    Type Description
    System.String

    ToGUIContentWithTooltips(Single, Boolean, Int32, Int32)

    Declaration
    public GUIContent ToGUIContentWithTooltips(float ms, bool showUnits = false, int limitToNDigits = 5, int frameIndex = -1)
    Parameters
    Type Name Description
    System.Single ms
    System.Boolean showUnits
    System.Int32 limitToNDigits
    System.Int32 frameIndex
    Returns
    Type Description
    GUIContent

    ToString(Double, Boolean, Int32)

    Declaration
    public string ToString(double ms, bool showUnits, int limitToNDigits)
    Parameters
    Type Name Description
    System.Double ms
    System.Boolean showUnits
    System.Int32 limitToNDigits
    Returns
    Type Description
    System.String

    ToString(Single, Boolean, Int32)

    Declaration
    public string ToString(float ms, bool showUnits, int limitToNDigits)
    Parameters
    Type Name Description
    System.Single ms
    System.Boolean showUnits
    System.Int32 limitToNDigits
    Returns
    Type Description
    System.String
    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