Table of Contents

Class EntityComponentCollectionExtensions

Namespace
Stride.CommunityToolkit.Engine
Assembly
Stride.CommunityToolkit.dll

Extension methods for IEnumerable<T> and IEnumerable<T>.

public static class EntityComponentCollectionExtensions
Inheritance
EntityComponentCollectionExtensions

Methods

Disable<T>(IEnumerable<T>)

Disables all ActivableEntityComponent in the collection.

public static void Disable<T>(this IEnumerable<T> components) where T : ActivableEntityComponent

Parameters

components IEnumerable<T>

A collection of ActivableEntityComponent to enable.

Type Parameters

T

The type of component.

Exceptions

ArgumentNullException

If components is null.

Enable<T>(IEnumerable<T>)

Enables all ActivableEntityComponent in the collection.

public static void Enable<T>(this IEnumerable<T> components) where T : ActivableEntityComponent

Parameters

components IEnumerable<T>

A collection of ActivableEntityComponent to enable.

Type Parameters

T

The type of component.

Exceptions

ArgumentNullException

If components is null.

Toggle<T>(IEnumerable<T>)

Toggles the Enabled state all ActivableEntityComponent in the collection.

public static void Toggle<T>(this IEnumerable<T> components) where T : ActivableEntityComponent

Parameters

components IEnumerable<T>

A collection of ActivableEntityComponent to enable.

Type Parameters

T

The type of component.

Exceptions

ArgumentNullException

If components is null.