大约有 244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
....Text(); text.pivot(text.width / 2, text.height / 2); text.pivot(200,200); console.log(text.pivotX, text.pivotY); 打印显示都是0 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人...
来源: Laya_社区 发布时间: 20180322
... this.text.text = "点击到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") } 上述代码运行时候报错,一直无法解决,请求大佬帮忙看一下问题?(.scene.physicsSimulation属性为灰色,不可使用) 报错如下: ...
来源: Laya_社区 发布时间: 20190523
...operty( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>{ //创建预制体 let monkey: Laya.Sprite3D = res.create(); //添加预制体到场景中 this.scene.addChild( monke...
来源: Laya3.0_文档 发布时间: 20241014
...改config.json中sourceMap属性为true 打开main.ts onConfigLoaded() console.log('helloworld'); F9打断点 LAYA中按 F8(编译) VSCODE 中按f5(运行) Laya实战大纲,Laya引擎,Laya教程,小游戏开发,h5 laya实战大纲,laya引擎,laya教程,小游戏开发,h5 ...
来源: Laya_社区 发布时间: 20200818
...数 _proto_.ontime = function(){ this.loadNum=parseInt(this.loadNum) + 1; console.log(this.loadNum); return this.loadNum; } 控制台可以看到 ontime函数每隔 100毫秒就执行一次,this.loadNum的值在不断自增。 但是 this.txt_load.text = "资源加载中,当前进度:" + pa...
来源: Laya_社区 发布时间: 20171209
...operty( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>{ //创建预制体 let monkey: Laya.Sprite3D = res.create(); //添加预制体到场景中 this.scene.addChild( monke...
来源: Laya3.0_文档 发布时间: 20251105
...正常进入 如图 相应的代码 window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); }之前是不会出现这个提示语的,除非网络不行才会提示,最近第一次进去就...
来源: Laya_社区 发布时间: 20180612
... = 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
...oader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来经过调试,...
来源: Laya_社区 发布时间: 20180525
...考修改。 关于问题的分析和推测: 我使用console.log一步步调试,最终发现是MiniSound的onCanPlay没有被调用,也就没有complete事件触发,同样的error事件也没有触发,于是就卡住了,触发不了批量加载全部完成的回调。 ...
来源: Laya_社区 发布时间: 20181026