Table of Contents

Struct EntityComponentEventArgs

Namespace
Stride.Engine.Design
Assembly
Stride.Engine.dll

An event when an EntityComponent changed in an Entity.

public struct EntityComponentEventArgs
Inherited Members

Constructors

EntityComponentEventArgs(Entity, int, EntityComponent, EntityComponent)

Initializes a new instance of the EntityComponentEventArgs struct.

public EntityComponentEventArgs(Entity entity, int index, EntityComponent previousComponent, EntityComponent newComponent)

Parameters

entity Entity

The entity.

index int
previousComponent EntityComponent

The previous component.

newComponent EntityComponent

The new component.

Fields

Entity

The entity

public readonly Entity Entity

Field Value

Entity

Index

The index of the component in the entity

public readonly int Index

Field Value

int

NewComponent

The new component

public readonly EntityComponent NewComponent

Field Value

EntityComponent

PreviousComponent

The previous component

public readonly EntityComponent PreviousComponent

Field Value

EntityComponent