Class LabelManager
Manages the registration of Labeling components
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
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 |
RegisterPendingLabels()
Registers all pending labels. Called once per frame during LateUpdate by the UnityEngine.Perception.GroundTruth.PerceptionUpdater.
Declaration
public void RegisterPendingLabels()