大约有 2,033 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...e.frameRate = Laya.Stage.FRAME_SLOW; 模式下 需要将 var isDoubleLoop=(this._renderCount % 2===0); 改为 var isDoubleLoop=(this._renderCount % 2===1); 使得第一帧时,后续的代码能正常跑下去,否则scene=null 2018-03-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180318
...te _factory: Laya.Templet; constructor(spine, x, y, speed) { this._factory = new Laya.Templet(); this._factory.loadAni(`../bin/res/spine_model/${spine}.sk`); this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]); } private parseComp...
来源: Laya_社区 发布时间: 20161108
...加载学堂3D角色资源,播放动画异常 //创建男角色模型 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("man/hero-mon_1129.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01,0.01,0.01); this.roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3); this.scen...
来源: Laya_社区 发布时间: 20180725
...接报错了 "Failed to construct 'Worker': Please use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微...
来源: Laya_社区 发布时间: 20180108
问一下tween的一些参数怎么设置 比如 Laya.Tween.from(this,{scaleX:0.5,scaleY:0.5},1000,Laya.Ease.elasticOut); 我可以修改elasticOut的回弹次数和回弹时间么? 2016-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20160913
[LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 laya3 加载资源后使用 Laya.loader.on(Event.ERROR, this, this.onError) 无法获得加载失败响应,根据示例里的错误处理和进度操作也得不到错误的响应,laya2里是可以的...
来源: Laya_社区 发布时间: 20240705
...stage.bgColor = "#ffffff"; if (Browser.onMiniGame) { Laya.timer.once(1000, this, function():void{ //设置共享画布大小 __JS__('sharedCanvas').width = Laya.stage.width; __JS__('sharedCanvas').height = Laya.stage.height; //主域往子域透传消息 __JS__('wx').postMessage({type:"resizeShared"...
来源: Laya_社区 发布时间: 20180525
...pleteCaller:any,completeFun:Function):void { this.m_spineCopmleteFun = completeFun; this.m_completeCaller = completeCaller; this.m_curLoadingUrl = url; if(this.isLoaded(url) == false) { ...
来源: Laya_社区 发布时间: 20170801
... cardList.renderHandler = new Handler(this, renderHandler, [cardList]); // popArr = cardArr.pop(); if(index%2){ cardList.itemRender = roleCardUI; ...
来源: Laya_社区 发布时间: 20170310
..., 如何在tiledMap格子中添加精灵? // TiledMap 5X5格子地图 this.tMap = new Laya.TiledMap(); var viewRect = new Laya.Rectangle(-50,-50,Laya.Browser.width,Laya.Browser.height); this.tMap.createMap("res/map/map.json",viewRect); // 精灵 var sp = new Laya.Sprite(); sp.graphics.drawRect(0,...
来源: Laya_社区 发布时间: 20180721