The default is to allow all labels. This struct is generally used by the MRUKAnchor to determine if a certain anchor should be included in the results of a query, by checking if the anchor's labels pass the filter.
This example shows how to use the LabelFilter to include only anchors with the TABLE label.
publicvoid MyFilter(MRUKAnchor anchor){
var tableFilter = new LabelFilter(MRUKAnchor.SceneLabels.TABLE);
if (labelFilter.PassesFilter(anchor.Label){
// Anchor has the TABLE label, do something with the anchor
}
}
Fields
MRUKAnchor.? SceneLabels SceneLabels[Get]
A list of labels to include, null is equivalent to all labels.
MRUKAnchor.? ComponentType ComponentTypes[Get]
Optional enum flags representing component types to include, null is equivalent to all component types.