大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0142 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...签 treeData += "</data>"; //把字符串解析为xml对象并返回 this.tree.xml = new Laya.XML(treeData); } } 这里给Tree列表赋的值,是写死的模拟数据。其中,拼接模拟数据,最多只能是二层结构,不支持层级很深的结构。 上述代码中,<dir>...
来源: Laya3.0_文档 发布时间: 20251010
... '_getBit' of undefined 主view移除子view时报错。 添加方法:this.m_MainScene.addChildAt(sc, this.m_MainScene.numChildren - 1); 移除方法:this.m_MainScene.removeChild(sc); 附件 : --> 2019-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20190112
...vennqi Laya.loader.load([{url:"xxx.mp3",type:Loader.SOUND}],Handler.create(this,onComped)) 2018-01-18 1 1 分享 微博 QZONE 微信 sevennqi 赞同来自: 可以和图片, push到同一个var res:Array = []里么? Laya.loader.load(res, Handler.create(this,onComped)) 2018-01-18 0 0 分享 微...
来源: Laya_社区 发布时间: 20180118
...ion(_super){ function LabelAtlas(url,clipX,clipY){ LabelAtlas.__super.call(this); (clipX===void 0)&& (clipX=1); (clipY===void 0)&& (clipY=1); this._clipX=clipX; this._clipY=clipY; this.skin=url; } __class(LabelAtlas,'laya.customUI.LabelAtlas',_super); var __proto=LabelAtlas.prototype...
来源: Laya_社区 发布时间: 20170206
...资源的引用 先上源码 destroy(destroyChild: boolean = true): void { this.stop(); super.destroy(destroyChild); this._frames = null; this._labels = null; }animation的destory方法,只是将_frames赋值为null,并没有对_frames的graphics进行destroy, 这样会导致动画的图集引...
来源: Laya_社区 发布时间: 20200414
...ne { constructor() { super(); DesertUI.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("Desert.scene"); //初始化舞台 Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.T...
来源: Laya_社区 发布时间: 20190321
...图,但是在试着导入游戏阶段报错。 以下是导入脚本。 this.map=new Laya.TiledMap(); this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var...
来源: Laya_社区 发布时间: 20161224
..."render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结构的项的...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.init(500, 300, WebGL); this.drawSomething(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); /...
来源: Laya2.0_文档 发布时间: 20210715
...ropertyDefined By args : Array 参数。Handler caller : * 执行域(this)。Handler method : Function 处理方法。Handler once : Boolean = false 表示是否只执行一次。如果为true,回调后执行recover()进行回收,回收后会被再利用,默认为false 。HandlerPu...
来源: laya_api 发布时间: 20170929