再在场景中创建一个定位器,移动到大约在水面的位置,并改名为 water_height

打开粒子属性 Lifespan Mode 粒子寿命改为lifespanPP only控制.
再在lifespanPP栏上右键进入Creation Expression创建表达式如图:

再右键lifespanPP栏,进入Runtime Before Dynamic Expression 创建表达式如图:
使用if语句,关键字if可使表达式两个或多个项目比较结果做决定,water_height就是上面创建的定位器,
= rand(13) 中的13用来控制粒子在水面停留时间,可以随意调整..

最后出来的.
