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

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

31. 关于资源加载的问题 [ 85%]

...aya.Sprite();绘制图形以后,怎么删除释放资源? Animation 的createFrames 使用已经加载的图集缓存动画失败 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 请问一下怎样动态加载prefab 本地调试加载本地图片都报错 laya怎么...

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

32. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 85%]

...象回收至对象池内。 ##### ```typescript class PoolTest { private createTime: number = 0; constructor() { //初始化引擎 Laya.init(1136, 640, Laya.WebGL); //等比缩放 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.f...

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

33. 加载-错误处理和进度 [ 85%]

.../fighter.png", "../../res/legend/map.jpg"]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("...

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

34. Laya.loader.load怎么停止回调 [ 85%]

...么停止回调 this._load = Laya.loader.load(this._data.url, Laya.Handler.create(this, this.loadComplete), null, Laya.Loader.ATLAS); 如果我想在加载的过程中 不去触发 loadComplete方法 我该怎么办? this._load.off(Laya.Event.COMPLETE, this, this.loadComplete); 这个是没用的 ...

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

35. 高级应用-渲染纹理 [ 85%]

...d("../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh")); Laya.loader.create([ "../../res/threeDimen/scene/Arena/Arena.ls", "../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); l...

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

36. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 85%]

...ebgl.WebGL; public class PoolTest { //创建新对象的时间 private var createTime:int=0; public function PoolTest() { //初始化引擎 Laya.init(1136, 640,WebGL); //等比缩放 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.fra...

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

37. 在加载多个资源的时候,加载进度异常 [ 84%]

...as/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    console.log(e) } , Laya.Loader.ATLAS);   此时进度e的值只有一个数0.41 ,不会从0到1,这是什么原因? 2018-01-01 添加评论 免...

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

38. 加载-错误处理和进度 [ 84%]

...ighter/fighter.png", "res/legend/map.jpg"]; Laya.loader.load(urls, Handler.create(this, this.onAssetLoaded), Handler.create(this, this.onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, this.onError); } onAssetLoaded(texture) { // 使用texture console.log...

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

39. QQ小游戏demo跑不起来 MiniFileMgr.fs.readFile无回调 [ 83%]

... 1、Main.ts的 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); 该行能成功运行,执行了this.onVersionLoaded回调; 2、然后该行Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(thi...

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

40. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 83%]

...    Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         Laya.Texture2D.load("res/threeDimen/Physics/plywood.jpg", Laya.Handler.create(this, function (tex) {           ...

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