ScriptProcessor Class
Namespace: Stride.Engine.ProcessorsAssembly: Stride.Engine.dll
Manage scripts
System.Object → EntityProcessor → EntityProcessor<ScriptComponent, ScriptComponent> → EntityProcessor<ScriptComponent> →
ScriptProcessor
Derived from ScriptProcessor:
public sealed class ScriptProcessor : EntityProcessor<ScriptComponent>
Name | Description | |
---|---|---|
Constructors | ||
ScriptProcessor() | ||
Methods | ||
OnEntityComponentAdding(Entity, ScriptComponent, ScriptComponent) | Run when a matching entity is added to this entity processor. |
|
OnEntityComponentRemoved(Entity, ScriptComponent, ScriptComponent) | Run when a matching entity is removed from this entity processor. |
|
OnSystemAdd() |
Constructors
ScriptProcessor()
public ScriptProcessor()
Methods
OnEntityComponentAdding(Entity, ScriptComponent, ScriptComponent)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, ScriptComponent component, ScriptComponent associatedData)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
ScriptComponent | component | |
ScriptComponent | associatedData |
Overrides
Stride.Engine.EntityProcessor<Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent>.OnEntityComponentAdding(Stride.Engine.Entity, Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent)
OnEntityComponentRemoved(Entity, ScriptComponent, ScriptComponent)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, ScriptComponent component, ScriptComponent associatedData)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
ScriptComponent | component | |
ScriptComponent | associatedData |
Overrides
Stride.Engine.EntityProcessor<Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent>.OnEntityComponentRemoved(Stride.Engine.Entity, Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent)
OnSystemAdd()
protected override void OnSystemAdd()
Overrides
Stride.Engine.EntityProcessor<Stride.Engine.ScriptComponent, Stride.Engine.ScriptComponent>.OnSystemAdd()