大约有 417 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0148 秒)
Laya_社区(291) Laya2.0_api(75) Laya3.0_文档(23) Laya2.0_文档(19) laya_api(3) Laya3.0_api(2) Laya2.0_示例(2) Laya_示例(2)
...(); 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
...E }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.cre...
来源: Laya_社区 发布时间: 20181105
...要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢
来源: Laya_社区 发布时间: 20171025
...l, onLoaded)); } function onLoaded() { var res_array = [ {url : "res/atlas/comp.atlas", type : Laya.Loader.ATLAS}, ] Laya.loader.load(res_array, Handler.create(null, onLoaded2)); } function onLoaded2() { Laya.stage.addChild(new TestUI()); }当用这种方式分步加载资源的时候 就会出现...
来源: Laya_社区 发布时间: 20180803
...现在文字量多一点话就不能滚动查看内容 在UI编辑器里 comp 文件夹导入图片后 在侧边栏不显示任何文件,但是文件夹里有 问题状态 最新活动: 2016-01-23 21:04 浏览: 2213 关注: 2 人 cuixueying • 2016-01-25 09:50 http://layaflash.ldc.layabox.c ... -...
来源: Laya_社区 发布时间: 20160123
...---chitianshishoux--加载错误,xxx/xxx/chitianshishoux.atlas lose skin comp/button.png 错误,全部按照UI案例来的呀 空项目的情况下面ios打包出现链表错误 Laya.MathUtil.getRotation接口说明注释错误 Mask显示错误 自定义组件在ui编辑器上正常使用,但...
来源: Laya_社区 发布时间: 20170728
...你可以使用layaAir IDE新建一个项目,在项目中的laya/assets/comp目录下可以看到每个组件的皮肤和命名的定义 参考:UI组件资源命名规则 第三个问题: 你可以考虑用动态遮罩实现图片进度条显示,在IDE下制作p...
来源: Laya_社区 发布时间: 20160729
...,而不是发布出来的图集再放到资源面板下!你可以看下comp.json,资源面板与发布资源后的对比!
来源: Laya_社区 发布时间: 20170613
...BitmapFont('Name', timerFont); Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); })); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 附件 : --> src.rar 2018-0...
来源: Laya_社区 发布时间: 20180509