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

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

351. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 58%]

...e(); // 守护神 this.angel = new Sprite(); // 加载主体的背景 Laya.loader.load("res/island.png", Handler.create(this, function() { // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower[towerLel].x...

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

352. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 58%]

...uted){ return null; } }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); if (!Browser.onMiniGame){ Loader.cacheRes(url,tSound); } }; var channel; channel=tSound.play(...

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

353. 请教Config.isAntialias=true会不会对整体性能有影响 [ 58%]

...已可媲美APP 请教下微信小游戏的内存和数据缓存? Laya.Loader.getRes请教 请教一个关于laya2.5d项目美术规范的问题哈 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 大量sprite如何优化性能 请教—...

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

354. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 58%]

...模型文件 gltfFile: any = { skeleton: { url: "res/skeleton.gltf", type: Loader.JSON }, face: { url: "res/face.gltf", type: Loader.JSON }, eyes: { url: "res/eyes.gltf", type: Loader.JSON }, ... } // 装扮配置文件 makeupjson: any = { blusher: { cfg: "res/self/gltfMode/gltfBin/beautyResource/bl...

来源: Laya2.0_文档 发布时间: 20210715

355. 请教sprite的hitArea怎么设置 [ 58%]

...击区域? 请教一个关于laya2.5d项目美术规范的问题哈 Laya.Loader.getRes请教 关于同为object层,层级设置无效的问题 anchor锚点设置不生效 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 Laya3D里的mate...

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

356. 请教2D3D混合的处理方法 [ 58%]

...范的问题哈 FD 宏编译时 出现 试图访问该方法时失败 Laya.Loader.getRes请教 请教下微信小游戏的内存和数据缓存? LayaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, 官方技术文档里:微信小游戏进阶处理,AS3,TS,JS并不相同...

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

357. LayaNative2.0 beta3 单像素图片平铺绘制失败 [ 58%]

...yaNative2.0 beta3 单像素图片平铺绘制失败 var tex:Texture = Laya.loader.getRes("res/repeattest.png");// 此图宽度只有1像素,横着平铺绘制无法显示 p.graphics.fillTexture(tex, 0, 0, 100, tex.height);// 无法显示 p.graphics.drawTexture(tex, 0, 0, 100, tex.height);// 正常...

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

358. EffectMaterial在真机上texture为空 [ 58%]

...xtures[i]; var path=texture.path; (path)&& (material[texture.name]=Loader.getRes(path)); } 会出现无法将texture赋值到材质上。网页端没有问题 版本全部都是最新 2018-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

359. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 58%]

...) return null; } var tSound:Sound; if (!Browser.onMiniGame) { tSound= Laya.loader.getRes(url); } if (!soundClass) soundClass = _soundClass; if (!tSound) { tSound = new soundClass(); tSound.load(url); if (!Browser.onMiniGame) { Loader.cacheRes(url, tSound); } } var channel:SoundChannel; channel = tSo...

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

360. TS2D基础篇-图集动画运用 问题 [ 58%]

...码: --------源码--------- var aniData=_this_._parseGraphicAnimation(Loader.getRes(url)); if (!aniData)return; var aniList=aniData.animationList; var i=0,len=aniList.length; --------源码--------- 报错: aniList.length为null "Cannot read property 'length' of null" 2018-07-19 添加评论 ...

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