Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TelemetryMetricDefinition.cs 583B

1234567891011121314151617181920
  1. namespace UnityEngine.Purchasing.Telemetry
  2. {
  3. struct TelemetryMetricDefinition
  4. {
  5. public TelemetryMetricTypes MetricType { get; }
  6. public string MetricName { get; }
  7. public TelemetryMetricDefinition(string metricName,
  8. TelemetryMetricTypes metricType = TelemetryMetricTypes.Histogram)
  9. {
  10. MetricName = metricName;
  11. MetricType = metricType;
  12. }
  13. public static implicit operator TelemetryMetricDefinition(string name)
  14. {
  15. return new TelemetryMetricDefinition(name);
  16. }
  17. }
  18. }