docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetupMaterialProperties

    SetupMaterialProperties(MaterialPropertyBlock, Renderer, Labeling, uint)

    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

    uint instanceId

    The instanceId assigned to the given Labeling 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)