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

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

291. TiledMap销毁的问题,TiledMap销毁后屏幕变灰,不能显示 [ 54%]

...wRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //这里是销毁地图层的代码 va...

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

292. Laya.HTMLDivElement解析img标签报错 [ 53%]

...nerHTML="<img src='res/atlas/test.png'/>"         Laya.stage.addChild(div);     } TypeError: Illegal constructor laya.core.js:11687     at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24)     at Function.getInstance (file:///D:/work/test2/bin/libs/lay...

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

293. 关于WebGL矢量图的遮罩问题 [ 53%]

...Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一挑粗直线 遮挡正方形的左半部分 mask.graphics.drawLines(0, 0, [100, 150, 150, 150], "#ff0000", ...

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

294. 1.7版本要初始化后有些代码才能用了 [ 53%]

...ht test.text.text = "dsafdsdsada"; test.text.color = "#ff0000"; Laya.stage.addChild(test.text); </script> 2017-03-02 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 kdsrpg 相关问题 LayaAir3D UnityPlugin 使用须知-版本更新...

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

295. 关于这个timer我的跑的快在 自己出完牌之后没有人比我的牌大了。可是我的牌还是出不去 [ 53%]

...; img.width = 76; img.height = 110; img.pos(200 + i * 35, 230); Laya.stage.addChild(img); this.reciveOutPoker.push(img); this.outHandPoker.push(this.aaa.playerNameList[i].playerhandpoker[j]); this.lastPaixing = 1;  for (let x = 0; x < this.outHandPoker.length; x++) { for (let j = 0; j < this....

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

296. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 51%]

...11384.png?lastModify=1551962708public init() {            Laya.stage.addChild(this);            //初始化list数据            if(Laya.Browser.onMiniGame){                //接受来自主域的信息                wx.onMessage(this.recevieData.bind(this));    ...

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

297. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 51%]

... mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); }     } } new laya.Loader_MultipleType();   2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 11 个回复 qian 赞同来...

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

298. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 50%]

...e = new Laya.Image(); image.texture = new Laya.Texture(videoTexTure); this.addChild(image); image.pos(100,100); }); 2024-03-04 1 1 分享 微博 QZONE 微信 phhh 赞同来自: 2d播放视频要事件触发 2023-08-25 0 1 分享 微博 QZONE 微信 木易楊 赞同来自: 尝试过是否是微信限...

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

299. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 49%]

..."); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage....

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

300. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 46%]

...} Animation.createFrames(url,"myFighter"); fly=new Animation(); Laya.stage.addChild(fly); fly.play(0,true,"myFighter"); } } 其他案例请参考:LayaAir开发实战-------Role.as文件也有相关使用方式,仅供参考。   2016-06-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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