docs.unity3d.com
    Show / Hide Table of Contents

    Class LabelManager

    Manages the registration of Labeling components

    Inheritance
    Object
    LabelManager
    Namespace: UnityEngine.Perception.GroundTruth
    Syntax
    public class LabelManager : object

    Properties

    registeredLabels

    Returns the set of registered Labeling components

    Declaration
    public IEnumerable<Labeling> registeredLabels { get; }
    Property Value
    Type Description
    IEnumerable<Labeling>

    singleton

    Returns the active LabeledObjectsManager instance

    Declaration
    public static LabelManager singleton { get; }
    Property Value
    Type Description
    LabelManager

    Methods

    Activate(IGroundTruthGenerator)

    Activates the given IGroundTruthGenerator. SetupMaterialProperties(MaterialPropertyBlock, Renderer, Labeling, UInt32) will be called for all instances under each object containing a Labeling component.

    Declaration
    public void Activate(IGroundTruthGenerator generator)
    Parameters
    Type Name Description
    IGroundTruthGenerator generator

    The generator to register

    Deactivate(IGroundTruthGenerator)

    Deactivates the given IGroundTruthGenerator. It will no longer receive calls when Labeling instances are created.

    Declaration
    public bool Deactivate(IGroundTruthGenerator generator)
    Parameters
    Type Name Description
    IGroundTruthGenerator generator

    The generator to deactivate

    Returns
    Type Description
    Boolean

    True if the was successfully removed. False if was not active.

    RegisterPendingLabels()

    Registers all pending labels. Called once per frame during LateUpdate by the UnityEngine.Perception.GroundTruth.PerceptionUpdater.

    Declaration
    public void RegisterPendingLabels()
    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