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

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

1061. 关于loader加载Loader.JSON的一些问题 [ 50%]

...der.load(resUrl, Laya.Handler.create(this, function (res) { //解析题目 log(res);   //放置方块 }), null, Laya.Loader.JSON); }   代码运行到这老是报错,报错原因是有不认识的字符,我想了下,resUrl指向的是本地的一个JSON文本资源,JSON格式没问题, ...

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

1062. VSCode高效开发工作流配置指南(TypeScript-IDE篇(TS)-代码模式基础) [ 50%]

...= exec("layaair2-cmd compile"); process.stdout.on("data",(data)=>{ console.log(data); }); process.stderr.on("data",(data)=>{ console.log(data); }); process.on("exit",(code,signal)=>{ console.log("success"); console.log(code,signal); cb(); }) } //创建一个名称为compile的gulp任务 task("compil...

来源: Laya2.0_文档 发布时间: 20210715

1063. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 50%]

...imer.frameLoop(1, this, this.aaa); private bb:number = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.height / 2; this.playerHB.y = 50...

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

1064. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 50%]

....CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 o⃕!o⃕一覺盜兲喨 赞同来自: 这...

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

1065. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 50%]

...his.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1066. 绘制形状时事件不触发 [ 50%]

...1, color1, color1, 0);     function on_down(event) {         console.log("_____ kbRing2\n");     } } function laya_test() {     Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL);     var ring = new myRing(600, 300, 18, "#087729", 40, "#a87729");     Laya.stage...

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

1067. 如何获取unity导出的摄像机 [ 50%]

....getChildByName("Camera"); camera.addComponent(CMS);//控制脚本 console.log(camera); }         2019-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 苏栢 相关问题 unity导出粒子文件问题 请问有没有方法能够...

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

1068. LayaAir IDE 1.8.5发布vivo小游戏Laya.loader.load()方法加载音乐文件出现问题 [ 50%]

...(已测试格式:wav,ogg,mp3,都不能加载) 3.通过console.log(Laya.loader.load(“音乐文件资源目录”)),打印日志能获取到对象,返回值不为undefined 其他:在没有加载音乐的情况下,通过Laya.SoundManager.playMusic (“音乐资源目录...

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

1069. 为什么new不出Rectangle的类,提示not defined [ 50%]

...Rectangle;   引用 var abc = new Rectangle(10,10,10,10);     console.log(abc); 代码。 Rectangle {x: 10, y: 10, width: 10, height: 10} 控制台结果, 综上,你的引擎环境有问题。 2018-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...

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

1070. UNITY导出的模型旋转不了 [ 50%]

....obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为不可用"); } } 2020-06-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 GameMonkey 相关问题 sprite旋转以...

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