This filter is useful when you want to create a component for the entities that match the query.
Let's suppose you have a Car component, and you want that by default the entities with such component have also the FuelTank component.
Instead of letting the user to manually add it, you can use the Create filter: godex will create and add the component if doesn't exist.
This filter is useful when you want to create a component for the entities that match the query.
Let's suppose you have a
Car
component, and you want that by default the entities with such component have also theFuelTank
component. Instead of letting the user to manually add it, you can use theCreate
filter: godex will create and add the component if doesn't exist.This filter is an ergonomic improvements, the user can just add the
Car
component and not know aboutFuelTank
at all.