大约有 246 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)
...qq.com/cgi- ... ot%3B, "", "get", "text"); function processHandler(data) { console.log(data); } function errorHandler(data) { alert(2); } function completeHandler(e) { alert(1); } } Laya.class(JiHuo, "ui.JiHuo", _super); return JiHuo; })(ui.JiHuoUI); 2018-04-19 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180419
... QZONE 微信 Supermang42 赞同来自: play( iNum: number ): void { console.log( iNum ); } 如上述的範例,函式( )內接收參數。 2018-03-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****207 相关问题 两...
来源: Laya_社区 发布时间: 20180331
...发错误事件。 Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/general/test.png",type:laya.net.Loader.IMAGE}]); 如果指定的类型时json或者atlas是会触发错误事件的。 2018-09-26 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20180926
....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