Details
Add DestroyedFX 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 menu
2DxFX > Standard > DestroyedFX
4 Gradients is available in Advanced Lightning Mode. Via the Components menu
2DxFX > Advanced Lightning > DestroyedFX
Note : Advanced Lightning is not working with the Unity UI Canvas (UI Canvas don't use lightning)
*without and with 2DxFX DestroyedFX
Property |
Range |
Default |
---|---|---|
_Alpha | 0 to 1 | 1f |
Seed | 0.001f to 1 | 1.0f |
Destroyed | 0 to 1 | 0.5f |
Manipulate DestroyedFX by script
Example:
// Drag and Drop your Sprite GameObject
// with the DestroyedFX component
// to your current script on the FX_Standard_DestroyedFX field
public _2dxFX_DestroyedFX_Editor FX_DestroyedFX;
void Update()
{
FX_DestroyedFX._Alpha = 1f;
}