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

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

51. 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? [ 65%]

...红框内的修改  if (Browser.onMiniGame){ console.log(1); tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ console.log(2); tSound=new soundClass(); tSound.load(url); if (Browser.onMiniGame){ Loader.cacheRes(url,tSound); } }; 2个if判断...

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

52. 请教关于transform根据目标旋转计算 [ 63%]

...没有旋转 请教一个关于laya2.5d项目美术规范的问题哈 Laya.Loader.getRes请教 图片不能按轴心旋转 请教下微信小游戏的内存和数据缓存? 3D模型tween旋转 请教 FlashBuilder如何生成二维码让手机扫描测试 Laya的DrawCall计算方式是不是有误...

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

53. 将字节数组转为图片 [ 63%]

...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

54. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 63%]

...理不被拉伸导致偏差。   增加的修改示例如下:   Laya.loader.load("RenderTexture.rendertexture", null, Laya.Handler.create(this, null, null, false)).then(() => { this.spRole.texture = Laya.loader.getRes("RenderTexture.rendertexture"); //设置纹理的宽高为舞台大小,...

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

55. 资源加载提示重复加载 [ 63%]

...资源加载姿势呢??   目前我的资源加载方式是: Laya.loader.load 这个方法里面加载资源,包括图片、音效等资源。   当我使用Laya.SoundManager.playMusic播放音乐或者playSound时播放音效资源时,我传入的是资源路径,会提示 Resources al...

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

56. 代码里能控制图片的锚点吗? [ 63%]

...ead"+Hero.getHeadID()+".png"; m_herohead = new Image(); var texture = Laya.loader.getRes(heroidstr); m_herohead.graphics.drawTexture(texture); m_herohead.anchorX = 0.5; m_herohead.anchorY = 1; m_herohead.pos(m_heroPosX,m_heroPosY); m_mapbg.addChild(m_herohead);     我在代码里创建图片,...

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

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

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

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

...码: --------源码--------- 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

59. 问一下这个问题要怎么改啊? [ 63%]

... addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as packa...

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

60. 如何用 FlashBuilder 或 LayaIDE 进行单步调试? [ 62%]

...用代码调用按钮的点击事件(如as3的dispatchEvent)? Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? 问题状态 最新活动: 2017-08-08 23:11 浏览: 4395 关注: 3 人 cuixueying • 2017-04-26 20:01 flash builder是as3的调试环境,不是h5的,我们只...

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