ScaleBy Action

Overview

The ScaleBy Action Node continuously scales an Object, thus creating an Animation. The final values of the Scale Attribute are determined by multiplying the initial ones with the values specified by the user in either the Attribute or Input Socket By of the Node. Find an example of how to use this Node and its effect over an Object at the end of this page.

The following table shows several examples of how the Scale values of an Object change for different By values:

Furthermore, visit the Actions Nodes page for a general introduction to these Nodes, and Scale for more detail about the Scale Attribute.

Scope: Scene, Function, Prefab.

Attributes

Inputs

Outputs

Example

This section shows a simple example of how to use the ScaleBy Action Node and the effect it has on an Object. We start by configuring the Scene, then build the Logic, and finally show the result.

Scene Configuration

Logic

We then need to configure the Logic. This is done in the Logic Editor.

We use the ScaleBy Action Node with the following Attributes:

  • Interpolation: Linear

And we connect to it the Object Node of the red ellipse and a Pulse to the Start Input Socket. Thus, having the following Logic configuration:

Final result

Finally, the effect of the ScaleBy Action Node when triggered is the following:

See Also

Last updated