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

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

131. 求问sprite放大后,graphics绘制的图像位置偏移 [ 67%]

...正确 sprite.scale(scaleRatio, scaleRatio); Laya.stage.addChild(sprite); console.log(sprite.width); console.log(sprite.height); 比如我在一个sprite的中心画一个圆,用scale放大后,圆偏离中心。 必须在原位置减去位置除以缩放比才能达到想要的效果。 附件 :...

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

132. spine 播放错乱 [ 67%]

...n(Laya.Event.STOPPED, this, this.play); this.play(); } private onError() { console.error("load spine error"); } private play(): void { console.log("1111111111"); if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0; } this.skeleton.play(this.index, false, true); }   正常示例   ...

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

133. changeText报错 [ 67%]

...一些用LAYABOX做的练习小游戏http://iuhigi.cn/ 赞同来自: 你用console.log(this.serverOwn)看一下输出什么 2018-01-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 minj 相关问题 【带附件】 使用Laya2.0.0beta5....

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

134. 微信小游戏,获取Laya.stage的宽高问题。 [ 66%]

微信小游戏,获取Laya.stage的宽高问题。 console.log("Laya.stage.height = ", Laya.stage.height); console.log("Laya.stage.width = ", Laya.stage.width);在加载完资源后,我打印了stage的宽高。在测试的时候,有一些机子出了问题。 正常的,安卓机测试 不...

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

135. Laya2.3的promise有问题 [ 66%]

Laya2.3的promise有问题 连一个简单的 async test() { console.log('连打印都无法'); } 在微信小程序(真机)环境里面的打印都执行不下去,都报错, 模拟器和浏览器都是正常的, 我试过IOS和android都会报错,真机会报错,执行不进去 附件 : --> ...

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

136. rigidBody.applyForce 物体不会移动 [ 66%]

....MeshSprite3D = building.getChildByName( "fence15" ) as Laya.MeshSprite3D; console.log("-----"); console.log(building); console.log("-----"); console.log(moveArea); } private playRun(): void { this.animator.play("Running"); this.animator.speed = 1.0; } private playIdle(): void { this.animator.play("...

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

137. destroy 报错 [ 66%]

...        floor1.destroy();                     console.log("destroy~~~~~");                 }             } 附件 : --> 2018-05-14 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

138. 升级到2.0后.原本用字符串索引module内的函数,发现不行了, 求指教 [ 66%]

...下.   例如: a.ts module proto{    export function msg1(){        console.log("msg1");    } }   b.ts module proto{    export function msg2(){        console.log("msg2");    } }   然后再main.ts里面. function dispatchMsg(name: string){   let fun = proto[name];   fun(); }  ...

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

139. destroy 报错 [ 66%]

...        floor1.destroy();                     console.log("destroy~~~~~");                 }             } 2018-05-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

140. laya2.0 不支持部分es6语法 [ 66%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 怎么把图片溢出的部分隐藏掉;就是类似overFlow:hidden 大佬们请问下图片...

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