docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateLabelEntryMatchCache

    CreateLabelEntryMatchCache(Allocator)

    Creates a LabelEntryMatchCache from the currently registered labeled objects, which can be used to look up labeling information in future frames, even after the objects have been destroyed. Due to timing of labeled object registration, if this is called during or before LateUpdate, this cache may become invalid.

    It is recommended to only use this method in rendering, as the cache is guaranteed to be in its final state for ground truth generation.

    Declaration
    public LabelEntryMatchCache CreateLabelEntryMatchCache(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator

    The allocator for creating the cache.

    Returns
    Type Description
    LabelEntryMatchCache

    The created cache.

    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)