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

大约有 237 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

21. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 90%]

...的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.d...

来源: Laya2.0_文档 发布时间: 20210715

22. 动画-新版骨骼动画 [ 90%]

...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_示例 发布时间: 20240930

23. 骨骼动画文件.sk 怎么用Laya.loader.load去预加载 [ 90%]

骨骼动画文件.sk 怎么用Laya.loader.load去预加载 2017-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 可以预加载,试下下面的方式:Laya.loader.load(url, Handl...

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

24. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 90%]

...内容相关的链接 提交 1 个回复 熊猫大侠 赞同来自:  Laya.Loader.getRes(Url) 2020-06-11 0 8 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 189*****909 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用了...

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

25. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 90%]

...的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.d...

来源: Laya2.0_文档 发布时间: 20210715

26. 用Laya.loader.load加载js文件的问题 [ 89%]

用Laya.loader.load加载js文件的问题 Laya.loader.load加载一个js文件,以text类型,在浏览器可以获取进度信息,为什么在native上,Android和iOS都没有进度信息?progress一直没有回调,只在100%时有一次 2018-10-25 添加评论 免费帖 --> 分享 微...

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

27. 在加载包含Animation的prefab后,动画没有显示 [ 89%]

...动画进行单独处理?还是不允许把动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.S...

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

28. 高级应用-实时阴影 [ 88%]

...糊等级,越大越高,更耗性能 directionLight.shadowPCFType = 3; Laya.loader.create([ "../../res/threeDimen/staticModel/grid/plane.lh", "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameL...

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

29. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 87%]

...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...

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

30. 预制体模块 · LayaAir3.0文档 · LAYABOX [ 87%]

... constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-...

来源: Laya3.0_文档 发布时间: 20240106