Details

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

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

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

*without and with 2DxFX Pixel


Property

Range

Default

_Alpha 0 to 1 1f
_Offset 4f to 128f 32f

Manipulate Pixel by script

Example:

// Drag and Drop your Sprite GameObject 
// with the Pixel component 
// to your current script on the FX_Standard_Pixel field 

public _2dxFX_Pixel_Editor FX_Pixel; 

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