Details

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

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

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

*without and with 2DxFX Blood


Property

Range

Default

_Alpha 0 to 1 1f
TurnToBlood 0f to 1f 0.140f
Blood 0.0f to 1f 0.141f

Manipulate Blood by script

Example:

// Drag and Drop your Sprite GameObject 
// with the Blood component 
// to your current script on the FX_Standard_Blood field 

public _2dxFX_Blood_Editor FX_Blood; 

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