Details

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

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

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

*without and with 2DxFX Outline


Property

Range

Default

_Alpha 0 to 1 1f
_OutLineSpread 0f to 0.020f 0.007f
_ColorX 0f to 1f new Color (1f, 1f, 1f, 1f)

Manipulate Outline by script

Example:

// Drag and Drop your Sprite GameObject 
// with the Outline component 
// to your current script on the FX_Standard_Outline field 

public _2dxFX_Outline_Editor FX_Outline; 

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