How to prevent a ComponentSystem from running on different scenes ?

Hello, I am trying to learn ECS,

I have first scene that spawn a sprite and a second one where I added a ComponentSystem to move the sprite
but now my first scene sprite also move. :hushed:

The scripts have a different namespace, what can I do to prevent that ?

*Edit: So I found a solution by adding a custom IComponentData to my second scene Entity but now I am curious to know if it is a proper way to do that ?

Ecs World exists in parallel with scenes. You can pause it’s updates or even destroy when unloading your second scene.