Details

Add Black Hole 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 > Black Hole

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

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

*without and with 2DxFX Black Hole


Property

Range

Default

_Alpha 0 to 1 1f
Distortion -1 to 1 1.6f
_Hole 0 to 0.5f 0
Speed -10 to 10 4
_Color / new Color (1f, 1f, 1f, 1f)

Manipulate Black Hole by script

Example:

// Drag and Drop your Sprite GameObject 
// with the Black Hole component 
// to your current script on the FX_Standard_BlackHole field 

public _2dxFX_BlackHole_Editor FX_BlackHole; 

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