SpriteExpandAnimation

Continuously animates a SpriteRenderer's size using a sine wave, producing a breathing or pulsing effect. Attach to any world-space sprite.

Inspector Fields

FieldTypeDescription
speedfloatFrequency of the oscillation in cycles per second.
amplitudefloatMaximum size change in world units. Default: 1.
horizontalfloat [0–1]Horizontal contribution to the expansion. Set to 0 to animate only vertically.
verticalfloat [0–1]Vertical contribution to the expansion. Set to 0 to animate only horizontally.

SinExpandAnimation

Same sine-wave breathing effect as SpriteExpandAnimation, but targets a RectTransform's sizeDelta for use in UI canvases. The animation timer resets each time the component is enabled, keeping synchronized groups in phase.

Inspector Fields

FieldTypeDescription
speedfloatFrequency of the oscillation in cycles per second.
amplitudefloatMaximum size change in pixels. Default: 1.
horizontalfloat [0–1]Horizontal contribution to the size change.
verticalfloat [0–1]Vertical contribution to the size change.

HoveringMouse

Scales a UI element up when the pointer hovers over it and back down when it leaves, with optional audio feedback. Implements IPointerEnterHandler and IPointerExitHandler. Automatically suppresses the effect if a sibling Button is not interactable.

Inspector Fields

FieldTypeDescription
maxSizefloatThe local scale the element grows to when hovered. Default: 2.
speedfloatLerp speed for the scale transition in and out. Default: 1.
audioSourceAudioSourceAudio source used to play hover sounds.
muteOnRunningboolWhen enabled, suppresses hover sounds while instructions are executing.
enterSoundAudioClipPlayed when the pointer enters the element.
exitSoundAudioClipPlayed when the pointer leaves the element.
volumefloat [0–1]Volume multiplier for both hover sounds. Default: 1.

CloudsController

Procedurally spawns and drifts a set of decorative cloud GameObjects within a rectangular area. Clouds that exit the right edge wrap back to the left at a random vertical position. Draws its bounding area as a cyan wire cube in the Scene view.

Inspector Fields

FieldTypeDescription
areaSizeVector2Width and height of the rectangular cloud spawn and drift area.
prefabsGameObject[]Pool of cloud prefabs chosen at random when a new cloud is spawned.
minSpeedfloatMinimum drift speed in world units per second.
maxSpeedfloatMaximum drift speed in world units per second.
amountintTotal number of cloud instances to create and simulate.