• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 744 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0076 秒)

221. 3d特效克隆时,在手机会现卡顿情况,特效资源已经提前在加载 [ 72%]

...EFFECT_PATH_3D+url;             var itemComplete:Sprite3D =  Laya.loader.getRes(_path);             if(itemComplete == null || itemComplete.loaded == false){                 var groupName:String = null;                 if(isGroup == true){           ...

来源: Laya_社区 发布时间: 20180601

222. LayaNative 2.8.0 加载的TTF字体不生效,附复现工程。 [ 72%]

...网盘手机App,操作更方便哦 望解答。           Laya.loader.load("fonts/OPPOSANS-H.ttf", Laya.Handler.create(this, (success) => {             console.log("2.8.0 字体加载是否成功:", success);             Laya.Text.defaultFont = "OPPOSANS...

来源: Laya_社区 发布时间: 20201118

223. UI-Dialog [ 72%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Handler.create(this, this.onSkinLoadComplete)); } onSkinLoadComplete() { const Dialog = Laya.Dialog, Image = Laya.Image, Button = Laya.Button; let dialog = new Dialog(); let bg = new Image(assets[0]); dial...

来源: Laya2.0_示例 发布时间: 20251130

224. 照相机-3D空间转2D空间 [ 72%]

...lse); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMon...

来源: Laya_示例 发布时间: 20251130

225. 预加载图集文集在小游戏端导致内存过高 [ 72%]

...y: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1...

来源: Laya_社区 发布时间: 20180122

226. 加载预制体json,返回值不统一 [ 72%]

...接下来的加载调用最终都是返回Prefab; 解决方式: Laya.loader.load("prefab/hero.json", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao...

来源: Laya_社区 发布时间: 20211026

227. 多次用Laya.Scene.load加载同名的.ls场景,返回是同一个 [ 72%]

...:加载场景,注意:不缓存 然而它的实现调用的是 Laya.loader.create(url, null, null, Scene); 但是create的第7个参数,cache默认是true。   也就是说Laya.Scene.load的注释不太对。 不知道是不是这个原因,请官方答疑。 2018-09-07 0 0 分享 微博 QZ...

来源: Laya_社区 发布时间: 20180907

228. 动画-新版骨骼动画 [ 72%]

...attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")); changeActionButton.s...

来源: Laya_示例 发布时间: 20251130

229. 使用外部引擎播放layaair制作的.ani [ 72%]

...tElement.clientWidth * 2, document.documentElement.clientHeight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添...

来源: Laya_社区 发布时间: 20180817

230. 请问特效播放的速率可以自定义吗? [ 71%]

...效果,请问下是什么原因? w1114367261 • 2018-04-11 16:27 Laya.loader.load("shadeY.part",Handler.create(this,onParticleLoaded),null,Loader.JSON); private function onParticleLoaded(settings:ParticleSetting):void { settings.minStartSize = 200; settings.minEndSize = 200; settings....

来源: Laya_社区 发布时间: 20180409