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