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

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

131. 获取sprite对象的 width和height为0 [ 68%]

....Rectangle = bg.getBounds(); var btBound: Laya.Rectangle = bg.getBounds(); console.log(bgBound.width/2) console.log(bgBound.height - 150) bt.pos(bgBound.width/2 - btBound.width/2,bgBound.height - 150) } } //启动游戏 new Game();打印结果: 0 -150 bgBound.width 和 bgBound.heigt 都为0  2016...

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

132. 发布小米快游戏没有二维码也没有rpk文件 [ 67%]

...在 但是 并没有 publishProWin3属性   是在 IDE的谷歌tools的 console里面加入的 上午我就试了 2019-06-04 0 1 分享 微博 QZONE 微信 k642015631 赞同来自: 已上传日志 Laya日志.zip 2019-06-04 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该...

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

133. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 67%]

...essBar.png', STATIC_IMG_PATH+'progressBar$bar.png' ]; this.isFirst = true; console.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookL...

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

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

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

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

135. 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

136. changeText报错 [ 67%]

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

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

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

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

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

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

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

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

139. [LayaAir2]Laya2.9.0打包快手小游戏龙骨动画白边 [ 66%]

...除非重启电脑才能打包 web端打包发布后能不能自动删除console.log 为什么ani动画执行的不是按中心点执行的 一个时间轴动画里创建的多个动画,怎么分别调用?如图 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionO...

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

140. 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