Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    EntityComponentEventArgs Struct

    Namespace: Stride.Engine.Design
    Assembly: 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

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation