大约有 779 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)
...on: 修改Laya.URL.basePath,改成加载服务器的资源。再用 Laya.loader.create加载场景资源。为啥在发布的微信小游戏中会报错,模型的网格数据比较大。 Mr.余 • 2018-06-22 18:23 @Laya_Aaron:报的错为 gamethirdScriptError expected Number;at requestAnimation...
来源: Laya_社区 发布时间: 20180622
...的 Demo示例 为什么ani动画执行的不是按中心点执行的 Laya.loader.create 进度回调函数执行两次 【附上DEMO】使用2.0.1发布,在微信版本低于7.0.3的手机上会出现画面撕裂!! layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执...
来源: Laya_社区 发布时间: 20190510
... = Laya.Stage.ALIGN_TOP; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注...
来源: Laya_社区 发布时间: 20170829
...不能继续播放 打地鼠的Laya1.0想用2.0写出来总是出错 Laya.loader.create 进度回调函数执行两次 麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 关于环形进度条,进度不能重置问题 官方提供的进度条示例 只能设置progress.png的九...
来源: Laya_社区 发布时间: 20180615
....loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));
来源: Laya_社区 发布时间: 20171116
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load("res/logo.png",Handler.create(this,onLoaded)); } private function onLoaded():void { img=new Image(); img.skin="res/logo.png"; Laya.stage.addChild(img); Laya.timer.once(500,this,onClick); //Laya.stage.on(Event.CLIC...
来源: Laya_社区 发布时间: 20170704
...能找到错误 let _url = "https://lupic.cdn.bcebos.com/2 ... 3B%3B Laya.loader.load(_url, Laya.Handler.create(this, res => { let a = new Laya.Image(_url); Laya.stage.addChild(a); })) 以下是安卓层面输出日志:09-22 11:08:10.811 27895-28111/? D/jswrapper: JS: [WARN]: [warn]Retry to loa...
来源: Laya_社区 发布时间: 20200922
..., offset || Point.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (...
来源: Laya3.0_文档 发布时间: 20251010
...function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); } 以上是子域项目...
来源: Laya_社区 发布时间: 20180830
...map.json'; /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new ...
来源: Laya_社区 发布时间: 20190218