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