Skip to main content

should_track_entity

Attribute Macro should_track_entity 

Source
#[should_track_entity]
Expand description

Filters which entities retain decoded field state while rewriting.

Return false to skip state decoding when the entity also does not enter the rewrite path. The default is true, preserving complete entity state.

The handler can receive ctx: &Context, event: EntityEvents, and entity: &Entity in any order. Return bool.