Interface IGroundTruthGenerator
Interface for setting up MeshRenderers for ground truth generation via GroundTruthLabelSetupSystem.
Namespace: UnityEngine.Perception.GroundTruth
Syntax
public interface IGroundTruthGenerator
Methods
SetupMaterialProperties(MaterialPropertyBlock, Renderer, Labeling, UInt32)
Called by GroundTruthLabelSetupSystem when first registered or when a Labeling is created at runtime.
Declaration
void SetupMaterialProperties(MaterialPropertyBlock mpb, Renderer renderer, Labeling labeling, uint instanceId)
Parameters
Type | Name | Description |
---|---|---|
MaterialPropertyBlock | mpb | The MaterialPropertyBlock for the given meshRenderer. Can be used to set properties for custom rendering. |
Renderer | renderer | The Renderer under the given Labeling. |
Labeling | labeling | The Labeling component created |
UInt32 | instanceId | The instanceId assigned to the given Labeling instance. |