Details
Add Wave 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 > Wave
Note : this effect are not available with advanced Lightning. Because it's obsolete.
*without and with 2DxFX Wave
Property |
Range |
Default |
---|---|---|
_Alpha | 0 to 1 | 1f |
_OffsetX | 0f to 128f | 10f |
_OffsetY | 0f to 128f | 10f |
_DistanceX | 0f to 1f | 0.03f |
_DistanceY | 0f to 1f | 0.03f |
_WaveTimeX | 0f to 6.28f | 0.16f |
_WaveTimeY | 0f to 6.28f | 0.12f |
AutoPlaySpeedX | 0f to 5f | 5f |
AutoPlaySpeedY | 0f to 50f | 5f |
AutoRandomRange | 0f to 50f | 10f |
AutoPlayWaveX | true or false | false |
AutoPlayWaveY | true or false | false |
AutoRandom | true or false | false |
Manipulate Wave by script
Example:
// Drag and Drop your Sprite GameObject
// with the Wave component
// to your current script on the FX_Standard_Wave field
public _2dxFX_Wave_Editor FX_Wave;
void Update()
{
FX_Wave._Alpha = 1f;
}