Details
Add PatternAdditive 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 > PatternAdditive
4 Gradients is available in Advanced Lightning Mode. Via the Components menu
2DxFX > Advanced Lightning > PatternAdditive
Note : Advanced Lightning is not working with the Unity UI Canvas (UI Canvas don't use lightning)
*without and with 2DxFX PatternAdditive
Property |
Range |
Default |
---|---|---|
_Alpha | 0 to 1 | 1f |
_OutLineSpread | 0f to 0.020f | 0.007f |
_ColorX | -3 to 3 | new Color (1f, 1f, 1f, 1f) |
_DistanceX | 0f to 1f | 0.01f |
_DistanceY | 0f to 1f | 0.04f |
Manipulate PatternAdditive by script
Example:
// Drag and Drop your Sprite GameObject
// with the PatternAdditive component
// to your current script on the FX_Standard_PatternAdditive field
public _2dxFX_PatternAdditive_Editor FX_PatternAdditive;
void Update()
{
FX_PatternAdditive._Alpha = 1f;
}