Table of Contents

Struct EntityComponentAttributes

Namespace
Stride.Engine
Assembly
Stride.Engine.dll

Allow to query attributes used on an EntityComponent

public struct EntityComponentAttributes
Inherited Members

Fields

AllowMultipleComponents

Gets a boolean indicating whether the EntityComponent is supporting multiple components of the same type on an entity.

public readonly bool AllowMultipleComponents

Field Value

bool

Methods

Get(Type)

Gets the attributes for the specified type.

public static EntityComponentAttributes Get(Type type)

Parameters

type Type

The type of the component.

Returns

EntityComponentAttributes

The attributes for the specified type.

Exceptions

ArgumentNullException
ArgumentException

The type must be of EntityComponent;type

Get<T>()

Gets the attributes for the specified type.

public static EntityComponentAttributes Get<T>() where T : EntityComponent

Returns

EntityComponentAttributes

The attributes for the specified type.

Type Parameters

T

Type of the component