Friflo.Engine.ECS icon indicating copy to clipboard operation
Friflo.Engine.ECS copied to clipboard

Is it normal that a StructuralChangeException is sometimes not thrown when performing structural changes within a query loop?

Open RouderSky opened this issue 4 months ago • 1 comments

Is it normal that a StructuralChangeException is sometimes not thrown when performing structural changes within a query loop?

RouderSky avatar Nov 14 '25 03:11 RouderSky

Currently the check involves:

  • Are components added or removed without a command buffer
  • Are tags added or removed without a command buffer In these cases the exception should be thrown.

I may add additional checks for:

  • An entity is created
  • An entity is removed

If you find a case that does not follow these rules please post an reproducible snippet.

friflo avatar Nov 19 '25 09:11 friflo