EntityComponentEventArgs Struct
Namespace: Stride.Engine.DesignAssembly: Stride.Engine.dll
An event when an EntityComponent changed in an Entity.
public struct EntityComponentEventArgs
| Name | Description | |
|---|---|---|
| Constructors | ||
| EntityComponentEventArgs(Entity, Int32, EntityComponent, EntityComponent) | Initializes a new instance of the EntityComponentEventArgs struct. |
|
| Fields | ||
| Entity | The entity |
|
| Index | The index of the component in the entity |
|
| NewComponent | The new component |
|
| PreviousComponent | The previous component |
|
Constructors
EntityComponentEventArgs(Entity, Int32, EntityComponent, EntityComponent)
Initializes a new instance of the EntityComponentEventArgs struct.
public EntityComponentEventArgs(Entity entity, int index, EntityComponent previousComponent, EntityComponent newComponent)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
| System.Int32 | index | |
| EntityComponent | previousComponent | The previous component. |
| EntityComponent | newComponent | The new component. |
Fields
Entity
The entity
public readonly Entity Entity
Field Value
| Type | Description |
|---|---|
| Entity |
Index
The index of the component in the entity
public readonly int Index
Field Value
| Type | Description |
|---|---|
| System.Int32 |
NewComponent
The new component
public readonly EntityComponent NewComponent
Field Value
| Type | Description |
|---|---|
| EntityComponent |
PreviousComponent
The previous component
public readonly EntityComponent PreviousComponent
Field Value
| Type | Description |
|---|---|
| EntityComponent |
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()