Details

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

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

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

*without and with 2DxFX Clipping


Property

Range

Default

_Alpha 0 to 1 1f
_ClipLeft 0f to 1f 0f
_ClipRight 0f to 1f 0f
_ClipUp 0f to 1f 0f
_ClipDown 0f to 1f 0f

Manipulate Clipping by script

Example:

// Drag and Drop your Sprite GameObject 
// with the Clipping component 
// to your current script on the FX_Standard_Clipping field 

public _2dxFX_Clipping_Editor FX_Clipping; 

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