docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetLabelEntryFromInstanceId

    TryGetLabelEntryFromInstanceId(int, out LabelEntry)

    Returns the class ID for the given instance ID resolved by LabelingConfiguration. Only valid when bounding boxes are being computed.

    Declaration
    public bool TryGetLabelEntryFromInstanceId(int instanceId, out LabelEntry labelEntry)
    Parameters
    Type Name Description
    int instanceId

    The instanceId of the object

    LabelEntry labelEntry

    When this method returns, contains the LabelEntry associated with the given instanceId if one exists. default otherwise.

    Returns
    Type Description
    bool

    True if a valid LabelEntry was found for the given instanceId.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when produceBoundingBoxAnnotations was not true on Start.

    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)