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. |