大约有 900 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0059 秒)
Laya_社区(682) Laya2.0_文档(89) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(21) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
...0引入第三方库失败 oppo分包加载失败 3d场景导出失败 Laya.loader.create 不会反馈失败状态跟描述不符合 急,百度小游戏,调用图集回收后,导致图片无法显示以及加载所有资源都失败 spine动画转换失败,加载错误:导出二进制数据出...
来源: Laya_社区 发布时间: 20210518
...a.stage.scaleMode = 'exactfit'; Laya.stage.screenMode = 'horizontal'; Laya.loader.load(['res/atlas/view.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费...
来源: Laya_社区 发布时间: 20180416
...下: ```typescript //先加载plf类型的合并后文件Image.json 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:T...
来源: Laya2.0_文档 发布时间: 20210714
...白求助,关于时间轴动画如何设置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-1...
来源: Laya_社区 发布时间: 20180117
... 2022-10-10 17:25 官方大大你好,我先说明一下流程: 通过 Laya.loader.create(url, complete); 加载 3D 特效文件 并且缓存 源对象 , 当前或下次 直接从源对象 克隆一个 3D特效 出来 进行 添加到场景里 当怪物全部死亡时 会进行特效文件的回收 ...
来源: Laya_社区 发布时间: 20221010
...画完成之后切换为待机动画,会导致播放的动画异常 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2017-11-27 14:10 浏览: 1190 关注: 2 人 asdf131 • 2017-11-27 13:50 再详细一点吗?changeHandler不是滚动时调用的吗? asdf131 • 201...
来源: Laya_社区 发布时间: 20171127
...自: //主域if(Laya.Browser.onMiniGame){//加载一个json和图集Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口...
来源: Laya_社区 发布时间: 20190419
...调。这个是异步获取,如果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _th...
来源: Laya_社区 发布时间: 20180530
加载配置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
...。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMesh; //此时...
来源: Laya2.0_文档 发布时间: 20210714