Squash & Stretch
Apply squash and stretch deformation to objects.
Introduction
Squash & Stretch squishes and bounces an object like jelly or rubber, the little cartoon touch that makes worlds feel alive. Springs, jelly blocks, and bouncy mascots all lean on it. The Squash & Stretch component panel in the Uni editor Image The Squash & Stretch 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 Squash & Stretch. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Properties
Is Active Bool Turns the component on or off. Axis Enum The axis the object flattens and stretches along. Time Float How long one full squash animation takes. Mode How the animation repeats: once, back and forth, or in a loop. Scale Spring Range 1 One end of how far the size may deform. Scale Spring Range 2 The other end of the deformation range. Animate Curve The smoothness and springiness of the bounce. Stay Time A rest pause after the animation finishes before it plays again. Spring Probability The chance that the bounce triggers again in the next period. Auto Move Starts the animation as soon as Is Active turns on. Property Type Description Every property on the Squash & Stretch component.
Events
Squash & Stretch has no events.
Commands
Move Starts or resumes the animation. None Pause Freezes the object mid-squash. Reset Snaps the object back to its resting shape. Return Animates the object back to its resting shape and stops. Command Description Parameter Commands that drive the component from a script.
Example
Make a ball object turn oval Squash & Stretch - Simple Example