Scale
Change the size of an object.
Introduction
Scale animates the size of an object, growing or shrinking it smoothly to a multiple of its original size. Great for pulsing buttons, growing plants, or shrinking platforms. The Scale component panel in the Uni editor Image The Scale component panel in the Object editor. caption
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Scale. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Another Way to Access
Shortcut: open the Asset Panel, go to the Device tab, Basic category, and click the Scale block. The editor spawns a cube with Scale already attached, ready to adjust. How to Access - the Scale block in Asset Panel > Device > Basic
Properties
Target Scale Float The size multiplier the object grows or shrinks toward. Time How many seconds the change in size takes. Mode Enum Once stops at the target size. Pingpong grows then shrinks repeatedly. Loop snaps back to the original size each round and repeats. Auto Move Bool Starts the animation automatically when the game begins. Stay Time A pause at the target size before the next cycle begins. Property Type Description Every property on the Scale component.
Events
Scale has no events.
Commands
Move Starts or resumes the size animation. None Pause Freezes the object at its current size. Reset Snaps back to the original size and stops. Return Animates back to the original size and stops there. Command Description Parameter Commands that drive the component from a script.
Example
A bouncing fruit stall: crates pulse bigger and smaller to catch the eye. Scale - simple example