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

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

551. 关闭指定定时器timer [ 70%]

...量变化 function roundTurnChange(type){ //减速阶段 roundTurn-=0.05; if(roundTurn<=0.3){ console.log("*************************************************88"); Laya.timer.clear(this.tlate,round); } return roundTurn; } 匿名用户 • 2018-08-11 15:41 Laya.timer.clear(this,round);也...

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

552. 在微信web开发者工具里勾选ES6转ES5然后window对象报错 [ 70%]

...模一样,请问这问题有解决方案吗?这是我的game.js代码 if ((typeof swan !== 'undefined') && (typeof swanGlobal !== 'undefined')) {     require("swan-game-adapter.js");     require("libs/laya.bdmini.js"); } else if (typeof wx!=="undefined") {     require("weapp-...

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

553. 基础使用与构成 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...super.dataSource; } set dataSource(value: any) { super.dataSource = value; if (!value) return; //把数据源里的值,给到子节点属性 if (value.avatar) { let redHot = this.getChildByName("avatar").getChildByName("redHot") as Laya.Image; redHot.visible = value.avatar.redHot.visible; } if (va...

来源: Laya3.0_文档 发布时间: 20251010

554. 请问如何获取触屏上两个或者更多位置的坐标 [ 70%]

...         var touches: Array<any> = e.touches;             if (touches && touches.length == 2) {                 this.preRadian = Math.atan2(                     touches[0].stageY - touches[1].stageY,                     touches[0].stageX - touches[...

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

555. 为什么这个ui中给这个TextInput组件runtime属性绑定了一个类 [ 70%]

...点进入"); // 是否缓存初始的文本提示字符串和文本颜色. if (!this.initText) { this.initText = this.textField.text ; this.initColor = this.textField.color ; }  // 如果是初始提示字符串, 就设置为空, 同时设置颜色和斜体. if (this.textField.text === this.initTex...

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

556. 游戏遇到个bug, [ 70%]

...caleY:1.0},500,null,Laya.Handler.create(this,function(){             if(!spring2.destroyed){ // 添加判断后就不出bug了                 Laya.Tween.to(spring2,{alpha:0},300,null,Laya.Handler.create(this,function(){                 if(callback){                   ...

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

557. LAYA FLASH 开发 编译器不让编译 flash.utils的东西吗 [ 70%]

... 需要修改 哪些地方 ,例如我有1000个消息 , 生成的都是if-flash 的 但是编译是需要 if-script的 ,能不能问问技术 ,这个 怎么解决, qian • 2018-03-20 19:47 @esboy1988:https://ask.layabox.com/question/12689

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

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

...is.iBuffer = Laya.IndexBuffer2D.create(); this.ibData = new Uint16Array(); if(vb) { vbArray = vb; } else{ vbArray = []; var texWidth = texture.width; var texHeight = texture.height; // console.log("liuyi",texWidth); //定义颜色值,取值范围0~1浮点 var red = 1; var greed = 1; var ...

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

559. webaudio 在iframe中使用, android chrome中没声音 [ 69%]

webaudio 在iframe中使用, android chrome中没声音 在android chrome上,直接在192.168.188.253:8080/index.html访问是可以播放webaudio的,但是通过iframe src="192.168.188.253:8080/index.html"却不行。经过搜索,是chrome禁止iframe中的跨域webaudio自动播放。参...

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

560. app 截屏分享功能问题 [ 69%]

...) ;// transaction字段用于 唯一标 识一个请求 req.message = msg; if(type == 1) //朋友圈 req.scene = SendMessageToWX.Req.WXSceneTimeline; else if(type == 2) //好友 req.scene = SendMessageToWX.Req.WXSceneSession; // 调用api 接口发送数据到微信 api.sendReq(req) ; } 传过去...

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