Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    TransformProcessor Class

    Namespace: Stride.Engine.Processors
    Assembly: Stride.Engine.dll

    Handle Children and updates WorldMatrix of entities.

    System.Object → EntityProcessor → EntityProcessor<TransformComponent, TransformComponent> → EntityProcessor<TransformComponent> → TransformProcessor
    Derived from TransformProcessor:

    public class TransformProcessor : EntityProcessor<TransformComponent>
    Name Description
    Constructors
    TransformProcessor()

    Initializes a new instance of the TransformProcessor class.

    Methods
    Draw(RenderContext)

    Updates all the WorldMatrix.

    OnEntityComponentAdding(Entity, TransformComponent, TransformComponent)

    Run when a matching entity is added to this entity processor.

    OnEntityComponentRemoved(Entity, TransformComponent, TransformComponent)

    Run when a matching entity is removed from this entity processor.

    OnSystemAdd()

    Run when this EntityProcessor is added to an EntityManager.

    OnSystemRemove()

    Run when this EntityProcessor is removed from an EntityManager.

    | Improve this Doc View Source

    Constructors


    TransformProcessor()

    Initializes a new instance of the TransformProcessor class.

    public TransformProcessor()
    | Improve this Doc View Source

    Methods


    Draw(RenderContext)

    Updates all the WorldMatrix.

    public override void Draw(RenderContext context)
    Parameters
    Type Name Description
    RenderContext context

    The render context.

    Overrides
    EntityProcessor.Draw(RenderContext)

    OnEntityComponentAdding(Entity, TransformComponent, TransformComponent)

    Run when a matching entity is added to this entity processor.

    protected override void OnEntityComponentAdding(Entity entity, TransformComponent component, TransformComponent data)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    TransformComponent component
    TransformComponent data
    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.TransformComponent, Stride.Engine.TransformComponent>.OnEntityComponentAdding(Stride.Engine.Entity, Stride.Engine.TransformComponent, Stride.Engine.TransformComponent)

    OnEntityComponentRemoved(Entity, TransformComponent, TransformComponent)

    Run when a matching entity is removed from this entity processor.

    protected override void OnEntityComponentRemoved(Entity entity, TransformComponent component, TransformComponent data)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    TransformComponent component
    TransformComponent data
    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.TransformComponent, Stride.Engine.TransformComponent>.OnEntityComponentRemoved(Stride.Engine.Entity, Stride.Engine.TransformComponent, Stride.Engine.TransformComponent)

    OnSystemAdd()

    Run when this EntityProcessor is added to an EntityManager.

    protected override void OnSystemAdd()
    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.TransformComponent, Stride.Engine.TransformComponent>.OnSystemAdd()

    OnSystemRemove()

    Run when this EntityProcessor is removed from an EntityManager.

    protected override void OnSystemRemove()
    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.TransformComponent, Stride.Engine.TransformComponent>.OnSystemRemove()

    Inherited Members

    EntityProcessor<TransformComponent>.GenerateComponentData(Entity, TransformComponent)
    EntityProcessor<TransformComponent>.IsAssociatedDataValid(Entity, TransformComponent, TransformComponent)
    EntityProcessor<TransformComponent, TransformComponent>.ComponentDatas
    EntityProcessor<TransformComponent, TransformComponent>.OnSystemAdd()
    EntityProcessor<TransformComponent, TransformComponent>.OnSystemRemove()
    EntityProcessor<TransformComponent, TransformComponent>.RemoveAllEntities()
    EntityProcessor<TransformComponent, TransformComponent>.ProcessEntityComponent(Entity, EntityComponent, Boolean)
    EntityProcessor<TransformComponent, TransformComponent>.GenerateComponentData(Entity, TransformComponent)
    EntityProcessor<TransformComponent, TransformComponent>.IsAssociatedDataValid(Entity, TransformComponent, TransformComponent)
    EntityProcessor<TransformComponent, TransformComponent>.OnEntityComponentAdding(Entity, TransformComponent, TransformComponent)
    EntityProcessor<TransformComponent, TransformComponent>.OnEntityComponentRemoved(Entity, TransformComponent, TransformComponent)
    EntityProcessor.Tags
    EntityProcessor.UpdateProfilingState
    EntityProcessor.DrawProfilingState
    EntityProcessor.Enabled
    EntityProcessor.MainComponentType
    EntityProcessor.RequiredTypes
    EntityProcessor.HasRequiredComponents
    EntityProcessor.Order
    EntityProcessor.EntityManager
    EntityProcessor.Services
    EntityProcessor.Update(GameTime)
    EntityProcessor.RemoveAllEntities()
    EntityProcessor.ProcessEntityComponent(Entity, EntityComponent, Boolean)
    EntityProcessor.InternalAddEntity(Entity)
    EntityProcessor.InternalRemoveEntity(Entity, Boolean)

    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