大约有 7 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0017 秒)
...4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` ![](img/1.gif)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerIndex ++; this.camera.addLayer(this.layerIndex%4 +1); this.camera.addLayer(5); }); ``` ![](img/1.gif)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...3.layer = 4; ...... //切换图层按钮事件监听 changeActionButton.on(Event.CLICK, this, function():void { camera.removeAllLayers(); layerIndex ++; camera.addLayer(layerIndex%4 +1); camera.addLayer(5); }); ``` ![](img/1.gif)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...件 每一次点击切换一个显示层 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ //清除所有图层 this.camera.removeAllLayers(); //计数自加一 this.layerIndex ++; //设置可视图层 this.camera.addLayer(this.layerIndex%4 + 1); //将地板图层加入,地板不参...
来源: Laya2.0_文档 发布时间: 20210715
...钮添加事件 每一次点击切换一个显示层 changeActionButton.on(Event.CLICK, this, function():void { //清除所有图层 camera.removeAllLayers(); //计数自加一 layerIndex ++; //设置可视图层 camera.addLayer(layerIndex%4 + 1); //将地板图层加入,地板不参与事件 came...
来源: Laya2.0_文档 发布时间: 20210715
...件 每一次点击切换一个显示层 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { //清除所有图层 this.camera.removeAllLayers(); //计数自加一 this.layerIndex ++; //设置可视图层 this.camera.addLayer(this.layerIndex%4 + 1); //将地板图层加入,地板...
来源: Laya2.0_文档 发布时间: 20210715
...(Collider) //当被鼠标点击 override public function onMouseDown(e:Event):void{ //trace("点击到了我box",owner.name); //从父容器销毁我自己 meshsp.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 staticLayaMonkey.addComponent(MouseScript); layaMonke...
来源: Laya2.0_文档 发布时间: 20210715