大约有 406 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
...用的教程里面的那个例子~ haisenshushu • 2018-03-29 15:48 Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"...
来源: Laya_社区 发布时间: 20180329
...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.TimeLine; public class AirDemo { private var sp1:Sprite; private var sp2:Sprite; private var sp3:Sprite; private var timeLin...
来源: Laya_社区 发布时间: 20161207
...dres(); function loadres(){ var res=[ {'url':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })(); 附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20171123
...c.js 步骤1)加载JS 2)加载完回调 3)new需要的类 //加载 Laya.loader.load(getModuleJSPath("abc.js"), Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{ //加载完回调 __JS__('window.eval(data + "//# sourceURL=" + "abc.js")'); //new需要...
来源: Laya_社区 发布时间: 20180507
...轴动画里创建的多个动画,怎么分别调用?如图 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 调用动画结束on方法,报错this.zombieAnimator.on is not a function Laya2.1.0 JS调用Java PlatformClass u...
来源: Laya_社区 发布时间: 20200509
...处理? 分享一个TS版本的3D2D结合的单机斗地主Demo 请问下loader如何强制加载一个文件,避免浏览器的缓存 在线急等,发现你们这个编译器一个bug,不能实现负负得正 请问layaide如何创建一个复合的Button 我刚开始使用layabox,发布...
来源: Laya_社区 发布时间: 20181128
...aya.utils.Timer; import laya.display.Sprite; import laya.net.Loader; import laya.ui.TextArea; import laya.resource.Texture; import laya.maths.Point; import laya.utils.Tween; import laya.d3.resource.models.PrimitiveMesh; import laya.debug.DebugP...
来源: Laya_社区 发布时间: 20170921
....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
...问题的根源在于sk文件解析完毕后企图加载配套png时给到LoaderManager的png图片路径为已加上URL.basePath的路径(在此例中为https://www.xx.com/sp.png),而在version.json中记录的真实文件名映射关系中,key值为不带有URL.basePath的路径(在此...
来源: Laya_社区 发布时间: 20190419
....create(null, function (res:any){ Laya.stage.addChild(res); })); //用Laya.loader的方式加载,加载后根节点是Scene2D Laya.loader.load('scene/Game.ls', Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)).then( (res)=>{ let scene = res.create(); //scene.s...
来源: Laya3.0_文档 发布时间: 20251010