docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DebugUI.Value

    A field that displays a read-only value.

    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
    object.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public class DebugUI.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
    float

    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.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)