Details

Add Twist 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 > Twist

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

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

*without and with 2DxFX Twist


Property

Range

Default

_Alpha 0 to 1 1f
Distortion -1 to 1 1.6f
_PosX -1 to 2 0.5f
_PosY -1 to 2 0.5f
_ColorX 0 to 10 new Color (1f, 1f, 1f, 1f)

Manipulate Twist by script

Example:

// Drag and Drop your Sprite GameObject 
// with the Twist component 
// to your current script on the FX_Standard_Twist field 

public _2dxFX_Twist_Editor FX_Twist; 

void Update() 
{
	FX_Twist._Alpha =  1f;
}