Skip to content

Stratkit Entities Reactive

# Entities Reactive

Works with: * Unity 2022.3.1f1+ * Entities 1.0.14+

Concepts

Reactive Component

Reactive component is a normal component with the difference that it can be tracked for: * adding to / removing from an entity and also enabling / disabling, * value changes inside this component.

Shadow Component

Each Reactive Component has its corresponding Shadow Component, it means that there is always a pair of Reactive Component + Shadow Component. Shadow Component is automatically added / enabled / disabled in particular entity in response to changes that occur in the corresponding Reactive Component.

You can make queries (in whatever way you want: manually, in ISystem, in SystemBase, ForEach etc.) for Shadow Components to detect changes that happened on Reactive Components.

Examples:

Other: