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

大约有 276 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0040 秒)

181. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 52%]

...档是错的,几年了至今无解答 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

182. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 52%]

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

183. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 52%]

...(); 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

184. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 52%]

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

185. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 52%]

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

186. 错误' message: 'Module 'laya.d3.core' has no exported member 'particle'.' at: '4252,38' source: '' [ 51%]

...---chitianshishoux--加载错误,xxx/xxx/chitianshishoux.atlas lose skin comp/button.png 错误,全部按照UI案例来的呀 空项目的情况下面ios打包出现链表错误 Laya.MathUtil.getRotation接口说明注释错误 Mask显示错误 自定义组件在ui编辑器上正常使用,但...

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

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

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

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

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

189. 关于canvas下资源释放的问题 [ 51%]

...图集地址或者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

190. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 50%]

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