Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 2.11 KB

File metadata and controls

49 lines (35 loc) · 2.11 KB
title
Clear

Empties all the components of an entity.

The presence of a clear means that a latest-at query of components at a given path(s) will not return any components that were logged at those paths before the clear. Any logged components after the clear are unaffected by the clear.

This implies that a range query that includes time points that are before the clear, still returns all components at the given path(s). Meaning that in practice clears are ineffective when making use of visible time ranges. Scalar plots are an exception: they track clears and use them to represent holes in the data (i.e. discontinuous lines).

Components

Required: ClearIsRecursive

Shown in

API reference links

Examples

Flat

snippet: archetypes/clear_simple

Recursive

snippet: archetypes/clear_recursive