πŸ’‘ LightEffect Component

The LightEffect component adds dynamic behavior to engine lights. It allows simulating flickers, pulses, alarms, and other animated lighting effects, all fully configurable by the developer.

βš™οΈ Main Properties

🧩 This component can only be added to objects of type light.

🎨 Available Effect Types

πŸ”₯ 1. Torch (Fire / Flame)

Simulates a torch or living flame, with soft but irregular variations that slightly change intensity and rhythm, imitating natural fire behavior.

Recommended example:
Speed = 1.2
Intensity Min = 0.6
Intensity Max = 1.1
Randomness = 0.3
πŸ”₯ Ideal for torches, bonfires, candles, or magical portals.

⚑ 2. Fluorescent (Broken tube light / Neon)

Emulates a damaged fluorescent or neon lamp, flickering irregularly with occasional blackout moments.

Recommended example:
Intensity Min = 0.2
Intensity Max = 1.0
Randomness = 0.7
⚑ Perfect for industrial environments, dark hallways, or abandoned laboratories.

πŸ’“ 3. Pulse (Soft pulse / Light breathing)

Creates rhythmic variation in intensity, smoothly increasing and decreasing continuously, similar to a breathing effect or a beating heart.

Recommended example:
Speed = 1
Intensity Min = 0.7
Intensity Max = 1.0
πŸ’“ Ideal for energy lights, indicators, neons, or charging zones.

🚨 4. Alarm (Emergency / Warning light)

Quickly alternates between different brightness levels, simulating an emergency or siren light. In some cases, it may include color changes between warm and cold tones.

Recommended example:
Speed = 3
Intensity Min = 0.5
Intensity Max = 1.3
🚨 Ideal for sirens, emergency alarms, spaceships, or police lights.

πŸ”§ Usage Tips

🧠 Tip: combine static lights with animated lights for more realistic environments.

πŸ“Œ Summary

- The LightEffect component adds automatic animation to lights.
- Available effects: Torch, Fluorescent, Pulse, and Alarm.
- All parameters can be modified directly from the editor panel.
- Intensity Min can go down to 0 to simulate complete blackouts.
- Randomness controls visual chaos, ideal for natural or deteriorated effects.