Skip to main content

Module modifiers

Module modifiers 

Source
Expand description

Built-in behaviours you attach in the editor with no code. They run every frame in Play mode. (Spin, Bob, Pulse, Wobble, ColorCycle.) Scripts can add, remove and tweak them like any component.

Structs§

Bob
Floats back and forth along an axis.
ColorCycle
Cycles the material colour through the hue wheel.
Pulse
Breathes: scale oscillates around its starting value.
Spin
Rotates continuously (degrees per second per axis).
Wobble
Organic drift: moves around its starting position following procedural noise.

Functions§

hsv_to_rgb
Converts HSV to RGB. Hue wraps in cycles; saturation and value should be in 0..1.
update
Advances every modifier by dt; time is seconds since the game started. Non-finite time/delta and negative deltas are ignored.