[]laya能像u3d那样给3d精灵设置layer吗?Sprite3D有个layer的属性,设置了没有效果,有没有人用过?
相机代码:
camera.removeAllLayers();
camera.addLayer(Layer.getLayerByNumber(10));
camera.clearFlag = BaseCamera.CLEARFLAG_DEPTHONLY;
3d精灵的设置:
var eff:Sprite3D = resCtrl.instance.getEff(resUrl);
eff.layer = Layer.getLayerByNumber(10);
scene.addChild(eff);
camera.removeAllLayers();
camera.addLayer(Layer.getLayerByNumber(10));
camera.clearFlag = BaseCamera.CLEARFLAG_DEPTHONLY;
3d精灵的设置:
var eff:Sprite3D = resCtrl.instance.getEff(resUrl);
eff.layer = Layer.getLayerByNumber(10);
scene.addChild(eff);
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: