docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IGroundTruthGenerator

    Interface for setting up Renderers for ground truth generation via LabelManager.

    Namespace: UnityEngine.Perception.GroundTruth
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    public interface IGroundTruthGenerator

    Methods

    ClearMaterialProperties(MaterialPropertyBlock, Renderer, Labeling, uint)

    Disables ground truth generation for a Labeling component or its associated MaterialPropertyBlock. This function is called by LabelManager when a Labeling component is disabled.

    Declaration
    void ClearMaterialProperties(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 LabelManager.

    Labeling labeling

    The LabelManager component for which ground-truth generation should stop.

    uint instanceId

    The instanceId assigned to the given LabelManager instance.

    SetupMaterialProperties(MaterialPropertyBlock, Renderer, Labeling, Material, uint)

    Enables ground truth generation for a Labeling component or its associated MaterialPropertyBlock. This function is called by LabelManager when a Labeling component is registered, created, or enabled.

    Declaration
    void SetupMaterialProperties(MaterialPropertyBlock mpb, Renderer renderer, Labeling labeling, Material material, 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 LabelManager.

    Labeling labeling

    The LabelManager component that was registered, created, or enabled

    Material material

    The specific material on the Renderer that the MaterialPropertyBlock will be applied to.

    uint instanceId

    The instanceId assigned to the given LabelManager instance.

    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)