Interface IGroundTruthGenerator | Perception | 0.5.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Back to top
    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