大约有 518 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0049 秒)
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
...@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
...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
...个参数: onTriggerEnter(other: any, self: any, contact: any): void { console.log(other); //被碰撞的对象 console.log(self); //自己 console.log(contact); //连接点对象, contact.getHitInfo(); //这里有碰撞点的信息 } 官方文档不全,或者说没法说的那么仔细,...
来源: Laya_社区 发布时间: 20181026
... 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
...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
...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
... 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
...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
... this.rigidbody.linearVelocity = vectory; console.log("施加的线速度:"); console.log(vectory); console.log("获取得到的线速度:"); console.log(this.rigidbody.linearVelocity); 附件 : --> 2020-03-30...
来源: Laya_社区 发布时间: 20200330