大约有 1,220 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
Laya_社区(1160) Laya2.0_文档(20) Laya3.0_文档(15) Laya2.0_示例(8) Laya_示例(8) Laya3.0_api(5) laya_api(2) Laya2.0_api(2)
...js文件,放在项目得什么地方,还有最新版的引入中没有loader='laya'了,需要添加吗 2017-02-09 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 owksmx593 相关问题 2.0一不小心删了bin目录下的某个场...
来源: Laya_社区 发布时间: 20170208
... alive.push({url:"res/FGUIMain/Common_atlas0.png", type:Laya.Loader.IMAGE}); Laya.loader.load(alive, Laya.Handler.create(this, this.LoadFinish)); } private LoadFinish(success:boolean):void { if(success) { ...
来源: Laya_社区 发布时间: 20210618
...efab。使用Laya.Sprite3D.load可以加载使用,但是当我使用Laya.loader.create,能加载出来,但是无法正常使用,会提示laya.core.js:12752 Uncaught TypeError: node._setParent is not a function 具体代码如下: Laya.Sprite3D.load(url, Laya.Hander.create(this, this.o...
来源: Laya_社区 发布时间: 20200313
...试过,发布到vivo真机调试,直接运行是没有问题的 Laya.loader.load([1.png,2.png,3.png]) 返回undefined Laya.loader.load("1.png") 加载返回false Laya.Texture2D.load("1.jpg") 加载返回undefined 求帮助 附件 : --> 2020-03-25 添加评论 已悬赏20元 --> 分享 微...
来源: Laya_社区 发布时间: 20200325
...JS 如: var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT }, { url: "res/atlas/choujiang.json", type: Loader.ATLAS }, ]; Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this...
来源: Laya_社区 发布时间: 20180511
...复 Laya_Aaron 赞同来自: Alex Huang package { import laya.net.Loader; import laya.net.ResourceVersion; import laya.utils.Handler; import laya.webgl.WebGL; import laya.utils.Mouse; import laya.ui.Button; import laya.display.Sprite; i...
来源: Laya_社区 发布时间: 20180725
... * @param url 图集地址或者texture地址,比如 Loader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg"); */ public static function clearTextureRes(url:String):void { 2018-04-25 0 0 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180425
...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),1...
来源: Laya2.0_文档 发布时间: 20210715
...果,官方可有解决方案,以下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play(); 这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在...
来源: Laya_社区 发布时间: 20180425
...ya.core.js:711) at ResInfo.__proto.event (laya.core.js:483) at LoaderManager.__proto._endLoad (laya.core.js:13152) at Loader.onLoaded (laya.core.js:13128) at EventHandler.__proto.runWith (laya.core.js:711) at Loader.__proto.event (laya.core.js:483) 在粒子中加了...
来源: Laya_社区 发布时间: 20190520