Class InstancingProcessor
- Namespace
- Stride.Engine.Processors
- Assembly
- Stride.Engine.dll
public class InstancingProcessor : EntityProcessor<InstancingComponent, InstancingProcessor.InstancingData>, IEntityComponentRenderProcessor- Inheritance
- 
      objectInstancingProcessor
- 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
- contextRenderContext
GenerateComponentData(Entity, InstancingComponent)
Generates associated data to the given entity.
protected override InstancingProcessor.InstancingData GenerateComponentData(Entity entity, InstancingComponent component)Parameters
- entityEntity
- The entity. 
- componentInstancingComponent
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
- entityEntity
- The entity. 
- componentInstancingComponent
- associatedDataInstancingProcessor.InstancingData
- The 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
- entityEntity
- The entity. 
- componentInstancingComponent
- dataInstancingProcessor.InstancingData
- The 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
- entityEntity
- The entity. 
- componentInstancingComponent
- dataInstancingProcessor.InstancingData
- The 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()