• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 513 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0102 秒)

451. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 46%]

...se); //0.1秒后删除 Laya.timer.once(100, null, Wipe); function Wipe() { console.log(other._owner); //移除自己 other._owner.removeSelf(); return; } } else { var move1 = new Laya.Vector3(0.02, 0, 0); var move2 = new Laya.Vector3(-0.02, 0, 0); Laya.timer.once(0, null, Right); Laya.timer.once(50,...

来源: Laya_社区 发布时间: 20181017

452. 安装layaair2-cmd一直失败 [ 46%]

...:\COCOS\cocos2d-x-3.17.2\templates;E:\COCOS\cocos2d-x-3.17.2\tools\cocos2d-console\bin;E:\COCOS\Python\Python27;E:\COCOS\apache-ant-1.10.7\bin;C:\Users\Administrator\AppData\Roaming\npm;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Egret\Egret Wing 3\bin ...

来源: Laya_社区 发布时间: 20200211

453. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 45%]

...est/1.png" ||data.url == "test/2.png"||data.url == "test/3.png"){ mark ++; console.log("------data.url:" + JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplet...

来源: Laya_社区 发布时间: 20190307

454. 2.3.0beta 各种bug [ 45%]

...yaMaxUI.ts"     let fileContent = readFile(layaMaxUI_Path);     // console.log("读取文件",fileContent)     if (fileContent ) {             fileContent = fileContent.replace(/Laya\.UICodeView/g,"UICodeView");             fs.writeFileSync(layaMaxUI_Path, fileCon...

来源: Laya_社区 发布时间: 20191017

455. 无法触发浏览器文件上传框 [ 45%]

...leInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new GameMain();在laya里无法触发浏览器<input type="file" id="file">文件上传框? 附件 : --> html-upload.rar 2017-05-11 添加评论 免费帖 --> 分享 微博 QZON...

来源: Laya_社区 发布时间: 20170511

456. 为什么自定义shader大图正常,小图就被缩小了 [ 45%]

...ray = []; var texWidth = texture.width; var texHeight = texture.height; // console.log("liuyi",texWidth); //定义颜色值,取值范围0~1浮点 var red = 1; var greed = 1; var blue = 1; var alpha = 1; //在顶点数组中放入4个顶点 //每个顶点的数据:(坐标x,坐标y...

来源: Laya_社区 发布时间: 20180619

457. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 44%]

... = div.contextWidth; if(div.contextWidth > 200) div.contextWidth = 200; console.log(div.contextWidth); paopao.y = gRoomView.chatBox.height; paopao.imgSayBg.height = div.contextHeight + 26; paopao.imgSayBg.width = div.contextWidth + 60; paopao.height = paopao.imgSayBg.height + 50; paopao.width = p...

来源: Laya_社区 发布时间: 20170911

458. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 44%]

.../layaMaxUI.ts"     let fileContent = readFile(layaMaxUI_Path);     console.log("读取文件",fileContent)     if (fileContent ) {             fileContent = fileContent.replace(/Laya\.UICodeView/g,"UICodeView");             fs.writeFileSync(layaMaxUI_Path, fileCon...

来源: Laya_社区 发布时间: 20190128

459. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 44%]

...;/dir>"+ "</data>"; var xml = this.parseXMLFromString(xmlString); console.log(this.m_tree) this.m_tree.xml =xml; 2017-07-17 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这里以alpha,官方tree示例为例,你可以参考下 1、在xml里,给你的项添加一个关于alph...

来源: Laya_社区 发布时间: 20170717

460. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 43%]

... = div.contextWidth; if(div.contextWidth > 200) div.contextWidth = 200; console.log(div.contextWidth); paopao.y = gRoomView.chatBox.height; paopao.imgSayBg.height = div.contextHeight + 26; paopao.imgSayBg.width = div.contextWidth + 60; paopao.height = paopao.imgSayBg.height + 50; paopao.width = p...

来源: Laya_社区 发布时间: 20170911