1、play on awake勾选上,默认
2、转换下shader
3、重复使用需要预制1个备用
4、effect和一般物体如果放在同一个unity程序下,出现一个问题(一般物体的组件不显示),因此专门建了一个单独的unity程序用于导入effect,因此资源路径会不一样
this.effect0 = Laya.Loader.getRes("res/LayaScene_SampleScene/Conventional/03_gold.lh")
this._scene.addChild(this.effect0)
this.effect0.transform.position = new Laya.Vector3(0,2,-2)
this.effect0.active = false