docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Annotation

    A handle to an annotation. Can be used to report metrics on the annotation.

    Implements
    IEquatable<Annotation>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.Perception.GroundTruth
    Assembly: solution.dll
    Syntax
    public struct Annotation : IEquatable<Annotation>

    Fields

    Name Description
    Id

    The ID of the annotation which will be used in the json metadata.

    SensorHandle

    The SensorHandle on which the annotation was reported

    Step

    The step on which the annotation was reported.

    Properties

    Name Description
    IsNil

    Returns true if the annotation is nil (created using default instantiation).

    Methods

    Name Description
    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Equals(Annotation)

    Indicates whether the current object is equal to another object of the same type.

    GetHashCode()

    Returns the hash code for this instance.

    ReportMetric(MetricDefinition, string)

    Reports a metric on this annotation. May only be called in the same frame as the annotation was reported.

    ReportMetricAsync(MetricDefinition)

    Report a metric whose values will be supplied in a later frame.

    ReportMetric<T>(MetricDefinition, T[])

    Reports a metric on this annotation. May only be called in the same frame as the annotation was reported.

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