docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DisplayElementConfiguration

    Configuration class used by NetStatsMonitorConfiguration to be displayed at runtime by RuntimeNetStatsMonitor.

    Inheritance
    object
    DisplayElementConfiguration
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Unity.Multiplayer.Tools.NetStatsMonitor
    Assembly: solution.dll
    Syntax
    [Serializable]
    public sealed class DisplayElementConfiguration : ISerializationCallbackReceiver

    Properties

    Name Description
    CounterConfiguration

    Counter configuration if Type is set to Counter.

    GraphConfiguration

    Graph configuration if Type is set to LineGraph or StackedAreaGraph.

    Label

    The label of the display element.

    Stats

    The list of stats represented by MetricId to display.

    Type

    The DisplayElementType of the display element. The label to display for this visual element. 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.

    Methods

    Name Description
    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.

    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.

    In This Article
    Back to top
    Copyright © 2023 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)