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

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

31. IDE新建2D示例,Sprite值狂飙,Console提示 EXT:webgl support OES_vertex_array_object [ 83%]

IDE新建2D示例,Sprite值狂飙,Console提示 EXT:webgl support OES_vertex_array_object 新建的2D示例项目,IDE版本2.0.2beta 控制面板提示 EXT:webgl support OES_vertex_array_object debug信息 Sprite值几秒钟就增加到几万了   附件 : --> 2019-04-26 添加评论 免费...

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

32. destroy节点后,报错 [ 83%]

...@param node 节点 */ base_remove(node){ if(node.numChildren<=0)return; console.log('移除',node.name); let obj; for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.destroy(); } }   或者 /* 从舞台移除模型对象 @param node 节点 */ base_remove(node){ if(node.numChi...

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

33. UI加载完成后无法获取控件的大小——超详细版问题 [ 83%]

...fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { console.log("----------the event resize-------") console.log("ref-resize:", this.myref.getBounds()); console.log("pan-resize", this.mypan.getBounds()); } private fitDOMElements_scroll(a, b, c, d, e, f): void { console.log("--...

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

34. [LayaAir 2.0] 如何获取碰撞点坐标? [ 83%]

...个参数: onTriggerEnter(other: any, self: any, contact: any): void { console.log(other); //被碰撞的对象 console.log(self); //自己 console.log(contact); //连接点对象, contact.getHitInfo(); //这里有碰撞点的信息 }   官方文档不全,或者说没法说的那么仔细,...

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

35. QQ小游戏demo跑不起来 MiniFileMgr.fs.readFile无回调 [ 83%]

... files.length; i++) {         let fileUrl = files;         console.log("加载文件测试", i, fileUrl);         MiniFileMgr.readFile(fileUrl, "utf8", Laya.Handler.create(this, function() {             console.log("加载文件测试1", i, fileUrl);       ...

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

36. 预制体添加刚体后,和其它刚体碰撞后不能修改角度和位置 [ 83%]

...ion;         if(other.label === "heng"){             console.log("角度"+this.owner.rotation);             this.owner.rotation=180-n;             console.log("角度"+this.owner.rotation);         }          if(other.label === "shu"){...

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

37. https://ask.layabox.com/question/13181官方Demo运行不起来 [ 82%]

...om/question/13181官方Demo运行不起来 wx.onMessage(function(message){ console.log(message); if (message.type && message.type == "wxxx") { //通过接收主域的消息来设置开发数据域的画布大小跟矩阵信息 sharedCanvas.width = message.width; sharedCanvas.height = message...

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

38. 继承Scene没有onEnable [ 82%]

...    super();     }     public onAwake():void{         console.log(1111);     } }   2.继承Sprite 执行后会有onAwake         let t = new tt();         Laya.Scene.root.addChild(t);     } } //激活启动类 new Main();  class tt extends Laya.Sprite{ ...

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

39. 3D场景跳转到2D场景问题 [ 82%]

...ner.name==="end"){ // this.owner.parent.removeSelf(); //删除自身场景 console.log(this.owner.parent) console.log(this.owner.parent.parent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene);   this.isDelete=true;  // console.log(Scene3DControl.Ga...

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

40. linearVelocity 获取的线速度不正确 [ 81%]

...        this.rigidbody.linearVelocity = vectory;         console.log("施加的线速度:");         console.log(vectory);         console.log("获取得到的线速度:");         console.log(this.rigidbody.linearVelocity);     附件 : --> 2020-03-30...

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