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