大约有 462 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
Laya_社区(281) Laya2.0_api(59) laya_api(55) Laya2.0_文档(24) Laya3.0_文档(16) Laya2.0_示例(15) Laya_示例(9) Laya3.0_api(3)
...0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉...
来源: Laya2.0_文档 发布时间: 20210715
...lose_1.ani"); lose1.x=150; lose1.y=400; lose1.size(100,300); lose1.on(Laya.Event.CLICK,this.listP,this.play1); lose1.name="lose1"; this.listP.addChild(lose1); play1():void { console.log("111"); this.lose1.play(); //this._childs[5].play(); } 2017-10-25 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20171025
...弄一下,== Chuan • 2018-03-24 14:57 已解决: if (e.type == Laya.Event.CLICK) { if (e.target.name == "arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { th...
来源: Laya_社区 发布时间: 20171011
...7-18 0 0 分享 微博 QZONE 微信 LT 赞同来自: var btn:Button;btn.on(Event.CLICK, this, onClick); private function onClick():void { console.log(); } 基本就是这个套路加响应事件=。= 官方demo含糊不清的看得累 2018-07-18 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 ...
来源: Laya_社区 发布时间: 20180717
...Source); cell.setImg(cell.dataSource[index]); cell.on(Laya.Event.CLICK, function() { console.log("click") }) } function onSelect(index) { console.log("当前选择的索引:" + index); } function createAPIList(api_list_view) { let data = []...
来源: Laya_社区 发布时间: 20180724
...件 每一次点击切换一个显示层 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ //清除所有图层 this.camera.removeAllLayers(); //计数自加一 this.layerIndex ++; //设置可视图层 this.camera.addLayer(this.layerIndex%4 + 1); //将地板图层加入,地板不参...
来源: Laya2.0_文档 发布时间: 20210715
...using 赞同来自: 求正确用法, 注: 我不想在代码里写btn.on(Event.Click,toLogin) 2017-12-05 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 目前这个功能是用来测试的,我们还要考虑是否保留onClick里边填的方法必须是静态的,具体的...
来源: Laya_社区 发布时间: 20171205
...钮添加事件 每一次点击切换一个显示层 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
...后在 回调中 写变大的逻辑 伪代码大概这个样子 btn.on(Event.CLICK, this, onBtnClick); 然后 onBtnClick方法里面写放大的逻辑 2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 bububu 相关问...
来源: Laya_社区 发布时间: 20180815