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

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

41. 加载-错误处理和进度 [ 73%]

...();package { import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Loader_ProgressAndErrorHandle { public function Loader_ProgressAndErrorHandle() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls:Arra...

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

42. Texture引用问题 [ 73%]

Texture引用问题 当我打开然后关闭一个界面后,调用Laya.Resource.destroyUnusedResources,发现内存未清理。 经调试发现,界面中有一个Image,设置了left=right=0,导致又触发了changeSource,堆栈: 这里会重新设置DrawTextureCmd,但是lastOne未...

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

43. laya.d3.core.pixelline.PixelLineMaterial_API3.0 [ 72%]

...dex setVector3 setVector3ByIndex setVector4 setVector4ByIndex destroyUnusedResources load Constructors constructor new PixelLineMaterial(): PixelLineMaterial Overrides Material.constructor Defined in laya/d3/core/pixelLine/PixelLineMaterial.ts:36 创建一个 PixelLineMaterial 实例。 Returns Pixe...

来源: Laya3.0_api 发布时间: 20231115

44. 加载-加载序列 [ 72%]

...log("All done."); } } } } new laya.Loader_Sequence();package { import laya.resource.Texture; import laya.utils.Handler; public class Loader_Sequence { private var numLoaded:int = 0; private var resAmount:int = 3; public function Loader_Sequence() { Laya.init(500, 400); // 按序列加载 monkey2.png...

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

45. Texture.destroy()方法设计有问题 [ 72%]

...不通过使用强制销毁的情况下 引用系数会多减去一次。Resource.removeReference()多调用一次 2018-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 能否提供一...

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

46. 打包突然不成功。RangeError: Invalid string length at encodeURIComponent () at Function.SMD5.str2rstrUTF8 [ 72%]

... 微博 QZONE 微信 155*****949 赞同来自: =mediumD:\LayaAirIDE_1.7.20\resources\app\out\layarepublic\LayaAirProjectPack\LayaAirProjectPack.max.js:3232 return unescape(encodeURIComponent(input)) ^ RangeError: Invalid string length at encodeURIComponent () at Function.SMD5.str2rstrUTF8 (D:\LayaAi...

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

47. laya.resource.VideoTexture_API3.0 [ 72%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/VideoTexture" VideoTexture Class VideoTexture VideoTexture 多媒体纹理 Hierarchy BaseTexture VideoTexture Index Constructors constructor Properties destoryedImmediately lock name url uuid DEBUG _videoTexturePool ...

来源: Laya3.0_api 发布时间: 20231102

48. laya.d3.core.material.SkyBoxMaterial_API3.0 [ 72%]

...dex setVector3 setVector3ByIndex setVector4 setVector4ByIndex destroyUnusedResources load Constructors constructor new SkyBoxMaterial(): SkyBoxMaterial Overrides Material.constructor Defined in laya/d3/core/material/SkyBoxMaterial.ts:81 创建一个 SkyBoxMaterial 实例。 Returns SkyBoxMaterial Pr...

来源: Laya3.0_api 发布时间: 20231115

49. Texture自动恢复还是存在另外的问题 [ 72%]

Texture自动恢复还是存在另外的问题 laya.resource.Texture类 __proto.recoverBitmap=function(){        var _$this=this;         var url=this._bitmap.url;         if (!this._destroyed && (!this._bitmap || this._bitmap.destroyed)&& url){            ...

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

50. 加载-单一类型资源加载 [ 72%]

...new laya.Loader_SingleType();package { import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Loader_SingleType { public function Loader_SingleType() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.cr...

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