大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0086 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...AirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); Laya.stage.addC...
来源: Laya_社区 发布时间: 20170505
...on Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new S...
来源: Laya2.0_文档 发布时间: 20210714
..., 0], ]; var grid = PF.core.Grid(matrix); 然后就报错了 TypeError: this._buildNodes is not a function at Object.Grid (file:///D:/Layabox/PathFinding/bin/libs/laya.pathfinding.js:41:19) at LayaAir3D.pathFindingTest (file:///D:/Layabox/PathFinding/bin/js/LayaAir3D.js:39:33) at new LayaAir3D (f...
来源: Laya_社区 发布时间: 20180404
...例啊?如果是UI类,可以通过设置var变量,在UI类中直接this.动效模板名字使用,但是脚本组件中怎么办呢?脚本组件中,即使设置了var变量,也是无法获取到这个动效模板对象的啊?求解? 2021-01-25 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20210125
...赞同来自: Laya.loader.load("res/sounds/light.mp3", Laya.Handler.create(this, ()=>{ console.log("load light.mp3"); Laya.SoundManager.playMusic("res/sounds/light.mp3"); Laya.SoundManager.playSound("res/sound...
来源: Laya_社区 发布时间: 20180814
...时使其在舞台居中? sp.loadImage(_img, 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); 因为我之前1.0可以使用以上方法,但切换到2.0发现complete不触发,这让我如何是好? 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20181009
...3 不行啊, 拿不到数据啊 Laya.loader.load(fileURL, Handler.create(this, null), null, Laya.Loader.JSON); let strJson: JSON = Laya.loader.getRes(fileURL); strJson: undefined
来源: Laya_社区 发布时间: 20180131
...怎么用呢? <img src="30.png" style="width:100;height:100" onclick="this.style.display='none';" /> 例如如上代码,有onclick属性,但是具体如何使用呢? 2017-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...
来源: Laya_社区 发布时间: 20170310
...wser.window.orientation; if (orientation !=null && orientation !=_$this._previousOrientation && _me._isInputting()){ Input["inputElement"].target.focus=false; } _$this._previousOrientation=orientation; if (_me._isInputting())return; if (Browser.onSafari) _me._safariOffsetY=Browser.cl...
来源: Laya_社区 发布时间: 20190515
...and the error message alongside the error stacktrace.Use a picture to show this information. 2017-12-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 本提示面向外国友人 2017-12-2...
来源: Laya_社区 发布时间: 20171229