大约有 3,603 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0076 秒)
Laya_社区(2675) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) laya_api(98) Laya3.0_文档(97) Laya_示例(83) Laya2.0_示例(45)
...1; videoElement.src = "../laya/assets/friend.mp4"; videoElement.controls = true; videoElement.play(); // 阻止IOS视频全屏 videoElement.setAttribute("webkit-playsinline", true); videoElement.setAttribute("playsinline", true); // // 设置画布上的对齐参照物 var reference = new Laya.Sprit...
来源: Laya_社区 发布时间: 20180119
... //初始化微信小游戏 Laya.MiniAdpter.init(true); //程序入口 Laya.init(600, 400,Laya.WebGL); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(this, this.beginLoad...
来源: Laya_社区 发布时间: 20180529
...imeExecutable": "${execPath}", "useBuildInServer": true, "sourceMaps": true, "webRoot": "${workspaceRoot}", "port": 9222, "fixedPort":false }, { ...
来源: Laya_社区 发布时间: 20180815
...owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2 = this._scene.input.getTouch(1); //是否...
来源: Laya2.0_文档 发布时间: 20210715
...owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._scene.input.getTouch(0); var touch2 = this._scene.input.getTouch(1); //是否...
来源: Laya2.0_文档 发布时间: 20210715
...ipSkin, 10, 1); Laya.stage.addChild(this.counter); this.counter.autoPlay = true; this.counter.interval = 1000; this.counter.x = (Laya.stage.width - this.counter.width) / 2 - 35; this.counter.y = (Laya.stage.height - this.counter.height) / 2 - 40; } showTotalSeconds() { const Clip = Laya.Clip; let cl...
来源: Laya2.0_示例 发布时间: 20251209
...gSelect); } 第五个render也会有选中框,以前是list.cacheContent=true可以解决,现在如果设置list.cacheContent=true会出现拖动问题 2017-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...
来源: Laya_社区 发布时间: 20171101
..."; /** @prop {name:boolType, tips:"布尔类型示例", type:Bool, default:true}*/ public boolType: boolean = true; /** @prop {name:optionType, tips:"", type:Option, option:"aaa,bbb,true", default:"bbb"}*/ public optionType:string = "bbb"; //EditOption 貌似不能设置默认值 /** @prop {name:edi...
来源: Laya_社区 发布时间: 20181215
...th / 2, Laya.stage.height / 2); Laya.stage.addChild(darkOrchidRect); // 为true时,碰撞区域会被修正为实际显示边界 // mouseThrough命名真是具有强烈的误导性 darkOrchidRect.mouseThrough = true; darkOrchidRect.on(Event.MOUSE_DOWN, this, this.onDown); } createLogger() { const ...
来源: Laya2.0_示例 发布时间: 20251209
...个属性说明里写的请清楚,false的时候是按设置宽高,为true是按设置显示区为点击区。所以你直接设置一下mouseThrough为true值就好了。就算是false,你设置属性宽高也是可以的,之所以之有4分之一有事件,是因为你动画也做错了...
来源: Laya_社区 发布时间: 20220809