docs.unity3d.com
    Show / Hide Table of Contents

    Class DebugUI.Value

    Read only Value widget.

    Inheritance
    Object
    DebugUI.Widget
    DebugUI.Value
    DebugUI.ProgressBarValue
    Inherited Members
    DebugUI.Widget.m_Panel
    DebugUI.Widget.panel
    DebugUI.Widget.m_Parent
    DebugUI.Widget.parent
    DebugUI.Widget.flags
    DebugUI.Widget.displayName
    DebugUI.Widget.tooltip
    DebugUI.Widget.queryPath
    DebugUI.Widget.isEditorOnly
    DebugUI.Widget.isRuntimeOnly
    DebugUI.Widget.isInactiveInEditor
    DebugUI.Widget.isHiddenCallback
    DebugUI.Widget.isHidden
    DebugUI.Widget.GetHashCode()
    DebugUI.Widget.nameAndTooltip
    Namespace: UnityEngine.Rendering
    Syntax
    public class Value : DebugUI.Widget

    Constructors

    Value()

    Constructor.

    Declaration
    public Value()

    Fields

    formatString

    Optional C# numeric format string, using following syntax: "{0[:numericFormatString]}" See https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings and https://docs.microsoft.com/en-us/dotnet/standard/base-types/composite-formatting Example: 123.45678 with formatString "{0:F2} ms" --> "123.45 ms".

    Declaration
    public string formatString
    Field Value
    Type Description
    String

    refreshRate

    Refresh rate for the read-only value (runtime only)

    Declaration
    public float refreshRate
    Field Value
    Type Description
    Single

    Properties

    getter

    Getter for the Value.

    Declaration
    public Func<object> getter { get; set; }
    Property Value
    Type Description
    Func<Object>

    Methods

    FormatString(Object)

    Returns the formatted value string for display purposes.

    Declaration
    public virtual string FormatString(object value)
    Parameters
    Type Name Description
    Object value

    Value to be formatted.

    Returns
    Type Description
    String

    The formatted value string.

    GetValue()

    Returns the value of the widget.

    Declaration
    public virtual object GetValue()
    Returns
    Type Description
    Object

    The value of the widget.

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    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