Skip to main content

Unity.Multiplayer.Tools.NetStats.MetricTypeEnumAttribute

Class MetricTypeEnumAttribute#

Use this attribute to declare an enum that represents custom metrics for use with the Multiplayer Tools package. In particular, this attribute can be used to declare custom metrics that can be displayed in the .

Inheritance#

System.Object

System.Attribute

MetricTypeEnumAttribute

Implements#

System.Runtime.InteropServices._Attribute

Namespace: Unity.Multiplayer.Tools.NetStats#

Assembly: Tools.dll#

Syntax#

[AttributeUsage(AttributeTargets.Enum)]
public class MetricTypeEnumAttribute : Attribute, _Attribute

Properties#

DisplayName#

The custom display name to use for the metric enum. This can be set to something different than the name of the enum to provide a nicer display name in UIs like the inspector.

Declaration#

public string DisplayName { get; set; }

Property Value#

TypeDescription
System.String

Implements#

System.Runtime.InteropServices._Attribute