Details

Add GrassFX 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 menu2DxFX > Standard > GrassFX

4 Gradients is available in Advanced Lightning Mode. Via the Components menu2DxFX > Advanced Lightning > GrassFX

Note : Advanced Lightning is not working with the Unity UI Canvas (UI Canvas don't use lightning)

*without and with 2DxFX GrassFX


Property

Range

Default

_Alpha 0 to 1 1f
Heat 0.0f to 4f 1.0f
Speed 0.0f to 4f 1.0f

Manipulate GrassFX by script

Example:

// Drag and Drop your Sprite GameObject 
// with the GrassFX component 
// to your current script on the FX_Standard_GrassFX field 

public _2dxFX_GrassFX_Editor FX_GrassFX; 

void Update() 
{
	FX_GrassFX._Alpha =  1f;
}