大约有 744 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(536) Laya2.0_文档(76) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(24) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
...画完成之后切换为待机动画,会导致播放的动画异常 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2017-11-27 14:10 浏览: 1190 关注: 2 人 asdf131 • 2017-11-27 13:50 再详细一点吗?changeHandler不是滚动时调用的吗? asdf131 • 201...
来源: Laya_社区 发布时间: 20171127
...; } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = n...
来源: Laya_社区 发布时间: 20180525
加载配置json文件不成功!json文件放在bin目录下的 Laya.loader.load(["res/atlas/comp.atlas","res/atlas/popup.atlas","res/atlas/cartoon.atlas","res/atlas/miner.atlas","gameConf.json"],Laya.Handler.create(this,onloaded),null,null); 2018-07-23 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20180723
...; //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这...
来源: Laya_社区 发布时间: 20180129
...tos/login.proto", "protos/gm.proto", "protos/samplegame.proto", ]; Laya.loader.load(this._proto_files,Laya.Handler.create(this,this.OnProtoLoaded),null, Laya.Loader.TEXT); 打包的时候在release/web下面有了protos/loginxxxxxxxx.proto这样的文件 然后运行的时候,报了这样...
来源: Laya_社区 发布时间: 20180319
...Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15290) at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15384) at EventHandler.__proto.runWith (laya.core.js:1156) at Loader.__proto.event (laya.core.js:911) at Loader.__proto.complete (laya.core.js:14555) at L...
来源: Laya_社区 发布时间: 20180919
... addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } } Main.as packa...
来源: Laya_社区 发布时间: 20170522
....alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load("assets/bg.jpg", Handler.create(this, loadCompleteHandler)); } private function loadCompleteHandler():void { var bg:Image = new Image("assets/bg.jpg"); Laya.stage.addChild(bg); }这张图在三星平板上可以...
来源: Laya_社区 发布时间: 20171124
...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.ui.Box; import laya.ui.CheckBox; import laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample { private var listP:ListPageUI;//UI面板 private var arr:Array;//list...
来源: Laya_社区 发布时间: 20170313
...a.stage.on(Laya.Event.CLICK, this, () => { Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => { let Particle2D = Laya.Particle2D; // 创建 Particle2D 实例 ...
来源: Laya_社区 发布时间: 20190808