大约有 276 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0040 秒)
Laya_社区(173) Laya2.0_api(58) Laya3.0_文档(22) Laya2.0_文档(16) laya_api(3) Laya3.0_api(2) Laya2.0_示例(1) Laya_示例(1)
...档是错的,几年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文...
来源: Laya_社区 发布时间: 20210111
...this.txtin.overflow = "scroll"; //文本溢出 // this.txtin.skin = "atlas/comp/textinput.png"; //皮肤 this.txtin.bgColor = "#19a4f1"; //背景颜色 this.txtin.borderColor = "#f6ff03" //边框颜色 this.txtin.editable = true; //可编辑状态 // this.txtin.type = "password"; //输入框类型 /...
来源: Laya3.0_文档 发布时间: 20230629
...(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.BoxCollider = this._boll1.addComponent(laya.physics.BoxCollider); box.height = 60; box.width = 28; //添加刚体 this._boll1.addComponent(Laya.RigidBody); //创建挡板 this.create...
来源: Laya_社区 发布时间: 20190428
...星 loader支持加载Arr序列加载 var altsArr:Array=[ {url:"res/atlas/comp.atlas", type:Loader.ATLAS}, {url:"bitmapFont/timeFont.fnt", type:Loader.FONT}, {url:"bg/hallroom-bg.png", type:Loader.IMAGE}, {url:"bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.create(this, on...
来源: Laya_社区 发布时间: 20180518
... ```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_文档 发布时间: 20210715
...---chitianshishoux--加载错误,xxx/xxx/chitianshishoux.atlas lose skin comp/button.png 错误,全部按照UI案例来的呀 空项目的情况下面ios打包出现链表错误 Laya.MathUtil.getRotation接口说明注释错误 Mask显示错误 自定义组件在ui编辑器上正常使用,但...
来源: Laya_社区 发布时间: 20170728
... ```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
... ```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
...图集地址或者texture地址,比如 Loader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg"); */ public static function clearTextureRes(url:String):void { 2018-04-25 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 你是...
来源: Laya_社区 发布时间: 20180425
...d']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '.png' }, food_txt: { text: foodtxt } // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; //实例化角色容器 v...
来源: Laya_社区 发布时间: 20181221