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

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

1. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 100%]

...,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console.log("getANi"); for (let i = 0; i < arr.length; i++) { let arrString = arr[i].split(","); // 创建动画动作状态 state = new Laya.AnimatorState(); //设置动作状态的名称 state.name = arrString[2]; // 开...

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

2. socket大型项目回调 [ 98%]

...; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = function(){console.log("----")}; console.info = console.log; console.warn = console.log; console.error = console.log; } this._message = new Message(); this._pack...

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

3. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 90%]

...dChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.log(this.getGold) } } new Main() Laya_Aaron • 2017-12-13 17:09 getGold 哪定义的呢 xdkaka • 2017-12-13 17:17 上面图片截图了,是在UI编辑模式下 -公用-...

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

4. Uncaught Can not find class laya.ani.bone.Skeleton [ 81%]

Uncaught Can not find class laya.ani.bone.Skeleton 新建项目 console.log(Laya.Skeleton)为undefine  场景里放入.sk动画 运行报错Can not find class laya.ani.bone.Skeleton 附件 : --> 2020-05-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

5. 如何使用vscode编译laya项目 [ 79%]

....ts', onwarn:(waring,warn)=>{ if(waring.code == "CIRCULAR_DEPENDENCY"){ console.log("warnning Circular dependency:"); console.log(waring); } }, treeshake: false, //建议忽略 plugins: [ typescript({ [b]cacheRoot:workSpaceDir + "/.rpt2_cache", [/b] tsconfig:workSpaceDir + "/tsconfig.json", check...

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

6. replaceSlotSkinName对于spine换肤不成功 [ 76%]

...emplet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseComplete() : void { let skeleton0 : Laya.Skeleton; skeleton0 = this.m_templet.buildArmature(1); skeleton0.pos(200,700); skeleton0.showSkinByIndex(1); Laya.stage.addChild(skeleton0); ...

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

7. 安装layaair2-cmd一直失败 [ 75%]

...:\COCOS\cocos2d-x-3.17.2\templates;E:\COCOS\cocos2d-x-3.17.2\tools\cocos2d-console\bin;E:\COCOS\Python\Python27;E:\COCOS\apache-ant-1.10.7\bin;C:\Users\Administrator\AppData\Roaming\npm;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Egret\Egret Wing 3\bin ...

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

8. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 63%]

...yer = this._layerMap[layerStr]; if(layer === null || layer === undefined){ console.log(layerNodeName + ' don not match the rule of layer node.'); return; } if(bRemove){ this.removeLayer(target,layer); } else{ this.addLayer(target,layer); } } } } public static removeAllLayers(target) { target.culling...

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

9. 针对2.0.0 beta5 setLoadingPage 做增强 [ 57%]

...ass page2 extends Laya.Scene { constructor() { super() } onOpened (args) { console.log(args) } }   附件 : --> 2018-11-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 感谢分享~! ...

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