大约有 1,363 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0043 秒)
Laya_社区(1161) Laya2.0_文档(69) Laya3.0_文档(63) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...uBtn(); SocketManager.instance.sendlogin(); //LayaSample.gameLoad.toStartGame() } else { ...
来源: Laya_社区 发布时间: 20190109
...reader.readAsArrayBuffer(data); console.log("############################"); reader.onload = function(e){ instance.buffer.push(reader.result); 只要...
来源: Laya_社区 发布时间: 20180410
...or() { 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); } 正常示例 附件 : --> spine.zip 2021-08-13 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20210813
...; public pageWidth: number; public pageHeight: number; onStart() { console.log("Game start"); Laya.loader.load("resources/res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton...
来源: Laya_社区 发布时间: 20230703
... mesh = this.owner.getChildAt(1) as Laya.SkinnedMeshSprite3D; console.log(mesh.skinnedMeshRenderer.isRender); 这是我测试时的模型和代码,实际使用根据模型的导出的层级和类型而定。附:我使用的是2.6.1版本,据说2.5之后都是改成这样了,之前可以...
来源: Laya_社区 发布时间: 20181009
...为安卓机型解决 ) 2 ios下 截取后 赋值给sprite 没有反应。log里texture对象跟安卓下的texture对象没有区别。 2020-09-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 18120789265 相关问题 分享:LayaAir...
来源: Laya_社区 发布时间: 20191016
...esourceManager吗?有没有例子? 关于优化求助思路,运行时log 内存500M多,IPhone6还是卡死 Laya2.6、2.7等支持async、await编译经验分享 设计模式下发布之后,打包的图集没有json文件 laya2.0调用scene.gc方法,再次加载同一份资源时候,会...
来源: Laya_社区 发布时间: 20200410
...台正常 在Android平台使用Spirte.loadImage方法初始Sprite卡死,log中一直打印日志“JCGraphicsCmdDispath::calcBoundingBox Wrong command number!,cmd=-65536” 同样的代码和图片地址在web和iOS平台正常; 代码如下: /** * widget: 放置头像的父节点 * headImgUr...
来源: Laya_社区 发布时间: 20171229
...xt.text = "点击到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") } 上述代码运行时候报错,一直无法解决,请求大佬帮忙看一下问题?(.scene.physicsSimulation属性为灰色,不可使用) 报错如下: 附件...
来源: Laya_社区 发布时间: 20190523
...e.runing = true; Game.stepNum = Math.floor(Math.random() * 6) + 1; console.log(Game.stepNum) Animate.role(Game.stepNum); } },[this.items.shaizi]); 弹层的代码: this.prizeAlertLayer = new Sprite(); this.prizeAlertLayer.zOrder = 90; this.prizeAlertLayer.size(W, H); let bg = new Sprite(); bg...
来源: Laya_社区 发布时间: 20180601