Class ScaleTo2DWorkAction
Work action that scales a 2D entity.
Implements
Inherited Members
Namespace: Evergine.Components.WorkActions
Assembly: Evergine.Components.dll
Syntax
public class ScaleTo2DWorkAction : Vector2AnimationWorkAction, IWorkAction
Constructors
ScaleTo2DWorkAction(Entity, Vector2, TimeSpan, EaseFunction, bool)
Initializes a new instance of the ScaleTo2DWorkAction class.
Declaration
public ScaleTo2DWorkAction(Entity entity, Vector2 to, TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The target entity. |
Vector2 | to | The target scale. |
TimeSpan | time | Animation duration. |
EaseFunction | ease | The ease function. |
bool | local | If the scale is in local coordinate. |
Methods
PerformRun()
Performs the run operation.
Declaration
protected override void PerformRun()