Class ModelTransformProcessor
- Namespace
- Stride.Engine.Processors
- Assembly
- Stride.Engine.dll
The processor for ModelComponent.
public class ModelTransformProcessor : EntityProcessor<ModelComponent, ModelTransformProcessor.ModelTransformationInfo>
- Inheritance
-
ModelTransformProcessor
- Inherited Members
Constructors
ModelTransformProcessor()
Initializes a new instance of the ModelTransformProcessor class.
public ModelTransformProcessor()
Methods
GenerateComponentData(Entity, ModelComponent)
Generates associated data to the given entity.
protected override ModelTransformProcessor.ModelTransformationInfo GenerateComponentData(Entity entity, ModelComponent component)
Parameters
entityEntityThe entity.
componentModelComponent
Returns
- ModelTransformProcessor.ModelTransformationInfo
The associated data.
IsAssociatedDataValid(Entity, ModelComponent, ModelTransformationInfo)
Checks if the current associated data is valid, or if readding the entity is required.
protected override bool IsAssociatedDataValid(Entity entity, ModelComponent component, ModelTransformProcessor.ModelTransformationInfo associatedData)
Parameters
entityEntityThe entity.
componentModelComponentassociatedDataModelTransformProcessor.ModelTransformationInfoThe associated data.
Returns
- bool
True if the change in associated data requires the entity to be readded, false otherwise.
OnEntityComponentAdding(Entity, ModelComponent, ModelTransformationInfo)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, ModelComponent component, ModelTransformProcessor.ModelTransformationInfo data)
Parameters
entityEntityThe entity.
componentModelComponentdataModelTransformProcessor.ModelTransformationInfoThe associated data.
OnEntityComponentRemoved(Entity, ModelComponent, ModelTransformationInfo)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, ModelComponent component, ModelTransformProcessor.ModelTransformationInfo data)
Parameters
entityEntityThe entity.
componentModelComponentdataModelTransformProcessor.ModelTransformationInfoThe associated data.