This node changes the size of objects. Scale on the X, Y or Z axis - or equally on all dimensions by selecting Uniform scale.
When scaling, the starting value is always 1. To make the target object smaller, give the node a value below 1 - and vice versa: values over 1 will make the target object bigger.
Target | Set the target object |
Execute | Execute the node |
↳ On Start | When toggled on the node will execute as soon as the game starts |
Enabled | Enable or disable the node. Disabled nodes cannot be executed |
Affect Physical | If disabled, the Scaler will only scale the visual properties of the object |
Loop | Repeat the scaling automatically as soon as it is completed |
Allow Override | When toggled on the scaling can be interrupted before completing. This can happen if the node is disabled or a new scale event is executed. |
Teleport | The teleport toggle can improve the interpolation between start and end point when making a large change over a short time |
Uniform Scale | When toggled on, all 3 axes will scale equally. Set the remaining X value bigger than 1 to scale up, or smaller than 1 to scale down. |
Operation | Set the operation of the Scaler,: Scale, Set Scale, or Set Scale Offset - jump to Operation Descriptions |
Vector | This input can receive a vector from another node. The input will be used as the scaling value. |
↳ X, Y & Z | Set the X, Y & Z values manually or with other logic nodes to define the scaling |
Duration | Set how long the scaling will take |
Tween | Set how the scaling should interpolate between start and end sizes. When the Tween setting is Linear, scaling proceeds evenly. Test different settings for example to create a smooth start or end. |
On Loop/End | Send signals to other nodes or objects when the scaling is complete |
Scale | Scale the object from the original size to the vector or X, Y & Z values over the duration. If the node is executed again the scale will happen again with the last end size as the starting size. Note: Unlike with Mover or Rotator where the starting value is always zero, the Scaler has the starting value 1. A value of zero would scale the the object down until it is essentially gone |
Set Scale | Scale the object from the original size to a new size over the duration. If the node is executed again with the same values nothing will happen as the object has already been scaled to the set size. |
Set Scale Offset | In Set Scale Offset the starting position of the object doesn't reset after it has been scaled. It scales the object from the starting size to the vector or X, Y & Z values over the duration just like Scale. If the Node is executed again with the same values the scaling will not happen again as the object has already been scaled to the set size. Good if being used in conjunction with the Wave. |
Here's a link to a demo that shows how to use the Scaler node: