docs.unity3d.com
    Show / Hide Table of Contents

    Interface IGroundTruthGenerator

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

    Namespace: UnityEngine.Perception.GroundTruth
    Syntax
    public interface IGroundTruthGenerator

    Methods

    ClearMaterialProperties(MaterialPropertyBlock, Renderer, Labeling, UInt32)

    Disables ground truth generation for a Labeling component or its associated . 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 for the given . Can be used to set properties for custom rendering.

    Renderer renderer

    The under the given LabelManager.

    Labeling labeling

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

    UInt32 instanceId

    The instanceId assigned to the given LabelManager instance.

    SetupMaterialProperties(MaterialPropertyBlock, Renderer, Labeling, UInt32)

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

    Declaration
    void SetupMaterialProperties(MaterialPropertyBlock mpb, Renderer renderer, Labeling labeling, uint instanceId)
    Parameters
    Type Name Description
    MaterialPropertyBlock mpb

    The for the given . Can be used to set properties for custom rendering.

    Renderer renderer

    The under the given LabelManager.

    Labeling labeling

    The LabelManager component that was registered, created, or enabled

    UInt32 instanceId

    The instanceId assigned to the given LabelManager instance.

    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