ScaleAction¶
Inherits: TimedAction
C++ type: ScaleAction
Description¶
Animates the scale property of its target object, interpolating between a start scale and an end scale over a fixed duration.
Constructors¶
Available in C++ and Lua:
ScaleAction(Scene* scene)— creates a new entity.ScaleAction(Scene* scene, Entity entity)— wraps an existing entity without taking ownership.
In Lua, use ScaleAction(scene, entity) to access an existing action. The entity must
already have the components required by this type; wrapping does not add them.
See EntityHandle ownership.
Methods¶
| Type | Name | Langs |
|---|---|---|
| void | setAction | C++ | Lua |
Method details¶
setAction¶
- void setAction(Vector3 startScale, Vector3 endScale, float duration, bool loop = false)
Configures the tween. startScale and endScale are scale vectors. duration is in seconds.