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

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

61. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 61%]

...擎需要的资源             //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load             (                 [                     { url: "res/atlas/comp.atlas" , type: ...

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

62. 滤镜的集中实现 [ 61%]

... Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //...

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

63. drawTexture 画出来的数据会有以前的数据 [ 61%]

... = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640; img.y = 320; iconSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.ra...

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

64. 如何清理所有的子无素 [ 61%]

...ya.Image(); //加载显示图片,坐标位于100,50 var tempImageName = "comp/poke_" + tempStringArray[i] + ".png"; img.loadImage(tempImageName, i * 30, 5); img.scaleX = 0.4; img.scaleY = 0.4; myBox_player2chupai.addChild(img); } 如何把myBox_ player2chupai的所有Child全部去除。 不知道...

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

65. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 61%]

...new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.panel); var img:Laya.Image = new Laya.Image(); img.skin = "res/GameBG2.jpg" this.panel.addChild(img) var img1:Laya.Image = new Laya.Image(); img1.y = 1136; img1.skin = "res/GameBG2....

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

66. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 61%]

... ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...

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

67. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 61%]

...代码如下: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = funct...

来源: Laya3.0_文档 发布时间: 20230303

68. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 61%]

... ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...

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

69. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 60%]

...; } } private function TestScrollImage():Image{ var img:Image = new Image("comp/image.png"); img.scrollRect = new Rectangle(0,0,100,100); return img; } private function SetPathArr(ar:Array,path:Sprite):void{ var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i...

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

70. 请问ts版本下的Combobox组件,下拉框层级问题,是不打算改了吗? [ 60%]

...ist无法点击了 romeo211 • 2017-04-25 22:47 let img = new Laya.Image('comp/bg.png'); let cbx = new Laya.ComboBox('comp/combobox.png', 'label1,label2'); cbx.selectedIndex = 0; let dialog = new Laya.Dialog(); dialog.addChild(img); dialog.addChild(cbx); dialog.popup(); romeo211 • 2017-04-25 22:4...

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