Class GroundTruthLabelSetupSystem
System which notifies the registered IGroundTruthGenerator about Labeling additions.
Inherited Members
Unity.Entities.ComponentSystem.OnCreateForCompiler()
Unity.Entities.ComponentSystemBase.GetEntityQuery(Unity.Collections.NativeArray<Unity.Entities.ComponentType>)
Unity.Entities.ComponentSystemBase.ExecutingSystemType
Namespace: UnityEngine.Perception.GroundTruth
Syntax
public class GroundTruthLabelSetupSystem : ComponentSystem
Methods
Activate(IGroundTruthGenerator)
Activates the given IGroundTruthGenerator. SetupMaterialProperties(MaterialPropertyBlock, Renderer, Labeling, UInt32) will be called for all MeshRenderer 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 |
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnUpdate()
Declaration
protected override void OnUpdate()