大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0071 秒)
...来实现相同的功能,运行效果如动图0所示:** (图0) ### 一、给页面中的组件设置runtime类 在页面管理目录下创建两个UI页面,分别叫MonkeyPage和BGPage。如下图, 注意!!本例导出类型为分离模式,只有非文件模式可以生...
来源: Laya2.0_文档 发布时间: 20210714
...哦,对了,主域里面Laya.MiniAdpter.init(true,false)被我替换成 if (Laya.Browser.onMiniGame) { Laya.MiniAdpter.init(true,false); }else if(Laya.Browser.onQQMiniGame){ //Laya.MiniAdpter.init(true,false); Laya["QQMiniAdapter"].init(true, false); } 开放域初始化依然是 Laya.i...
来源: Laya_社区 发布时间: 20191009
... var posZ=0; var vc=0; var ic=0; for (var tv=0;tv <=this._slices;tv++){ if (tv===0){ vertices[vc++]=0; vertices[vc++]=halfHeight; vertices[vc++]=0; vertices[vc++]=0; vertices[vc++]=1; vertices[vc++]=0; vertices[vc++]=0.5; vertices[vc++]=0.5; } curAngle=tv *sliceAngle; posX=Math.cos(curAngle)*this...
来源: Laya_社区 发布时间: 20180113
...ss(): void { this.progressBar.value += 0.05; //每次进度条的改变量 if (this.progressBar.value == 1) { this.loadText.text = "资源加载完成"; Laya.timer.clear(this, this.changeProgress); } } } 效果如下: (动图1-6) 二、通过代码创建ProgressBar 在进行项目开发的时...
来源: Laya3.0_文档 发布时间: 20251010
...的,报错如图三),代码如下: public drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Brows...
来源: Laya_社区 发布时间: 20191230
...。 */ public static function addVersionPrefix(originURL:String):String { if (manifest && manifest[originURL]) { if (type == FILENAME_VERSION) return manifest[originURL]; return manifest[originURL] + "/" + originURL; } return originURL; } 上面是版本管理的处理逻辑,你可以重...
来源: Laya_社区 发布时间: 20181127
... box2d.ENABLE_ASSERTS && box2d.b2Assert(!this.IsLocked()); if (!this.IsLocked()) { var b = a.m_collideConnected; a.m_prev && (a.m_prev.m_next = a.m_next); a.m_next && (a.m_next.m_prev = a.m_prev); a === this.m_jointList ...
来源: Laya_社区 发布时间: 20181024
...件的限制 __proto.addComponentIntance=function(comp){ if (comp.owner) throw "Node:the component has belong to other node."; if (comp.isSingleton && this.getComponent((comp).constructor)) throw "Node:the compon...
来源: Laya_社区 发布时间: 20190609
...修改 吗 ? esboy1988 • 2018-03-22 20:38 请问下 这个工具中的 if-script 这种宏 在编辑器中 怎么设置 后,才能让编译器在编译的时候顺利通过,而不是手动的去 删除替换 if-flash 后的代码? Yangcy • 2019-02-19 11:48 兼容处理工具在哪里?
来源: Laya_社区 发布时间: 20160913
...Laya.stage.addChild(tipContainer); nextStep(); })(); function nextStep() { if (guideStep == guideSteps.length) { Laya.stage.removeChild(guideContainer); Laya.stage.removeChild(tipContainer); } else { var step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, ...
来源: Laya_示例 发布时间: 20251219