Skip to content

SequentialAttribute Class

Definition

Namespace: Brine2D.ECS.Systems

Marks a system to always execute sequentially \(single\-threaded\), regardless of the global EnableMultiThreading setting. Use this for systems that are not thread-safe or have strict ordering requirements.

C#
public sealed class SequentialAttribute : System.Attribute

Inheritance System.ObjectSystem.Attribute → SequentialAttribute

Remarks

This attribute is declared with Inherited = false, meaning it is not automatically applied to subclasses. If you derive from a [Sequential]-marked system, the derived class will run in parallel unless you explicitly apply [Sequential] to it as well.