Details
Add Lightning effect to your Sprite Renderer and Unity UI Canvas Image.
Add it to the Sprite Renderer or Unity UI Canvas Image GameObject via the Components menu
2DxFX > Standard > Lightning
4 Gradients is available in Advanced Lightning Mode. Via the Components menu
2DxFX > Advanced Lightning > Lightning
Note : Advanced Lightning is not working with the Unity UI Canvas (UI Canvas don't use lightning)
*without and with 2DxFX Lightning
Property |
Range |
Default |
---|---|---|
_Alpha | 0 to 1 | 1f |
_Value1 | 16 to 256 | 64 |
_Value2 | 0 to 2 | 1 |
_Value3 | 0 to 1 | 1 |
Stabilisation | 1f to 8f | 4.0f |
Speed | 0 to 10 | 1.0f |
AutoPlaySpeedY | 0f to 50f | 5f |
AutoRandomRange | 0f to 50f | 10f |
Manipulate Lightning by script
Example:
// Drag and Drop your Sprite GameObject
// with the Lightning component
// to your current script on the FX_Standard_Lightning field
public _2dxFX_Lightning_Editor FX_Lightning;
void Update()
{
FX_Lightning._Alpha = 1f;
}