Add Distortion 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 menu2DxFX > Standard > Distortion

4 Gradients is available in Advanced Lightning Mode. Via the Components menu2DxFX > Advanced Lightning > Distortion

Note : Advanced Lightning is not working with the Unity UI Canvas (UI Canvas don't use lightning)

*without and with 2DxFX Distortion




_Alpha 0 to 1 1f
_OffsetX 0f to 128f 10f
_OffsetY 0f to 128f 10f
_DistanceX 0f to 1f 0.03f
_DistanceY 0f to 1f 0.03f
_WaveTimeX 0f to 6.28f 0.16f
_WaveTimeY 0f to 6.28f 0.12f
AutoPlaySpeedX 0f to 5f 5f
AutoPlaySpeedY 0f to 50f 5f
AutoRandomRange 0f to 50f 10f
AutoPlayWaveX true or false false
AutoPlayWaveY true or false false
AutoRandom true or false false

Manipulate Distortion by script


// Drag and Drop your Sprite GameObject 
// with the Distortion component 
// to your current script on the FX_Standard_Distortion field 

public _2dxFX_Distortion_Editor FX_Distortion; 

void Update() 
	FX_Distortion._Alpha =  1f;