Class DebugUI.Value
Read only Value widget.
Inherited Members
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. |