Class DisplayElementConfiguration
Configuration class used by Net
Implements
Inherited Members
Namespace: Unity.Multiplayer.Tools.NetStatsMonitor
Assembly: Unity.Multiplayer.Tools.NetStatsMonitor.Configuration.dll
Syntax
[Serializable]
public sealed class DisplayElementConfiguration : ISerializationCallbackReceiver
Properties
CounterConfiguration
Counter configuration if Type is set to Counter.
Declaration
public CounterConfiguration CounterConfiguration { get; set; }
Property Value
Type | Description |
---|---|
Counter |
GraphConfiguration
Graph configuration if Type is set to LineGraph or StackedAreaGraph.
Declaration
public GraphConfiguration GraphConfiguration { get; set; }
Property Value
Type | Description |
---|---|
Graph |
Label
The label of the display element.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
string |
Stats
The list of stats represented by Metric
Declaration
public List<MetricId> Stats { get; set; }
Property Value
Type
The Display
Declaration
[Tooltip("The label to display for this visual element in the on-screen display. For graphs this field is optional, as the variables displayed in the graph are shown in the legend. Consider leaving this field blank for graphs if you would like to make them more compact.")]
public DisplayElementType Type { get; set; }
Property Value
Type | Description |
---|---|
Display |
Methods
OnAfterDeserialize()
For internal use. Implementation for ISerializationCallbackReceiver. Called after Unity deserialize the object. This allow to keep the configuration details when reloading assemblies or making change in the code.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
For internal use. Implementation for ISerializationCallbackReceiver. Called before Unity serialize the object. This allow to keep the configuration details when reloading assemblies or making change in the code.
Declaration
public void OnBeforeSerialize()