Class InstancingProcessor
- Namespace
- Stride.Engine.Processors
- Assembly
- Stride.Engine.dll
public class InstancingProcessor : EntityProcessor<InstancingComponent, InstancingProcessor.InstancingData>, IEntityComponentRenderProcessor
- Inheritance
-
InstancingProcessor
- Implements
- Inherited Members
Constructors
InstancingProcessor()
public InstancingProcessor()
Properties
VisibilityGroup
public VisibilityGroup VisibilityGroup { get; set; }
Property Value
Methods
Draw(RenderContext)
Performs work related to this processor.
public override void Draw(RenderContext context)
Parameters
context
RenderContext
GenerateComponentData(Entity, InstancingComponent)
Generates associated data to the given entity.
protected override InstancingProcessor.InstancingData GenerateComponentData(Entity entity, InstancingComponent component)
Parameters
entity
EntityThe entity.
component
InstancingComponent
Returns
- InstancingProcessor.InstancingData
The associated data.
IsAssociatedDataValid(Entity, InstancingComponent, InstancingData)
Checks if the current associated data is valid, or if readding the entity is required.
protected override bool IsAssociatedDataValid(Entity entity, InstancingComponent component, InstancingProcessor.InstancingData associatedData)
Parameters
entity
EntityThe entity.
component
InstancingComponentassociatedData
InstancingProcessor.InstancingDataThe associated data.
Returns
- bool
True if the change in associated data requires the entity to be readded, false otherwise.
OnEntityComponentAdding(Entity, InstancingComponent, InstancingData)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, InstancingComponent component, InstancingProcessor.InstancingData data)
Parameters
entity
EntityThe entity.
component
InstancingComponentdata
InstancingProcessor.InstancingDataThe associated data.
OnEntityComponentRemoved(Entity, InstancingComponent, InstancingData)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, InstancingComponent component, InstancingProcessor.InstancingData data)
Parameters
entity
EntityThe entity.
component
InstancingComponentdata
InstancingProcessor.InstancingDataThe associated data.
OnSystemAdd()
Run when this EntityProcessor is added to an EntityManager.
protected override void OnSystemAdd()
OnSystemRemove()
Run when this EntityProcessor is removed from an EntityManager.
protected override void OnSystemRemove()