大约有 310 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...wRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //这里是销毁地图层的代码 va...
来源: Laya_社区 发布时间: 20180503
...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
...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
...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
...; 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
...11384.png?lastModify=1551962708public init() { Laya.stage.addChild(this); //初始化list数据 if(Laya.Browser.onMiniGame){ //接受来自主域的信息 wx.onMessage(this.recevieData.bind(this)); ...
来源: Laya_社区 发布时间: 20190307
... 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
...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
..."); 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
...} 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