Skip to content

GameApplicationBuilder.ExcludeDefaultSystem() Method

Prevents a default engine system from being registered in every scene's world. Use this when a system is never needed project-wide and you want to avoid its construction cost entirely. To conditionally disable a system at runtime instead, use ConfigureScene(Action<IEntityWorld>) with world.GetSystem<T>()!.IsEnabled = false. Can be called multiple times; exclusions are additive.

public Brine2D.Hosting.GameApplicationBuilder ExcludeDefaultSystem<T>()
    where T : class;

Type parameters

T

Returns

GameApplicationBuilder

Example

builder.ExcludeDefaultSystem<ParticleSystem>();
builder.ExcludeDefaultSystem<CollisionDetectionSystem>();