docs.unity3d.com
    Show / Hide Table of Contents

    Class MetricDefinition

    The metric definition holds of the associated metadata for a metric.

    Inheritance
    Object
    DataModelElement
    MetricDefinition
    ObjectCountMetricDefinition
    RenderedObjectInfoMetricDefinition
    Inherited Members
    DataModelElement.id
    Namespace: UnityEngine.Perception.GroundTruth.DataModel
    Syntax
    public class MetricDefinition : DataModelElement, IMessageProducer

    Constructors

    MetricDefinition(String, String)

    Creates a new metric definition.

    Declaration
    public MetricDefinition(string id, string description)
    Parameters
    Type Name Description
    String id

    The ID of the metric definition.

    String description

    The description of the metric.

    MetricDefinition(String, String, String)

    Creates a new metric definition.

    Declaration
    public MetricDefinition(string modelType, string id, string description)
    Parameters
    Type Name Description
    String modelType

    The type of the metric.

    String id

    The ID of the metric definition.

    String description

    The description of the metric.

    Properties

    description

    The description of the metric.

    Declaration
    public string description { get; }
    Property Value
    Type Description
    String

    modelType

    Declaration
    public override string modelType { get; }
    Property Value
    Type Description
    String
    Overrides
    DataModelElement.modelType

    Methods

    IsValid()

    Is the component valid?

    Declaration
    public override bool IsValid()
    Returns
    Type Description
    Boolean

    Is the component valid?

    Overrides
    DataModelElement.IsValid()

    ToMessage(IMessageBuilder)

    Convert contents int a message.

    Declaration
    public override void ToMessage(IMessageBuilder builder)
    Parameters
    Type Name Description
    IMessageBuilder builder

    The message builder that will convert the class's contents into a message

    Overrides
    DataModelElement.ToMessage(IMessageBuilder)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023