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