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

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

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

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

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

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

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

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

13. laya.resource.HTMLCanvas [ 88%]

...| Index | Frames No Frames HTMLCanvasProperties | Methods Packagelaya.resourceClasspublic class HTMLCanvasInheritanceHTMLCanvas laya.resource.Bitmap HTMLCanvas 是 Html Canvas 的代理类,封装了 Canvas 的属性和方法。 Public Properties PropertyDefined By  context : Context[read-o...

来源: Laya2.0_api 发布时间: 20190513

14. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 87%]

...到哪个大纹理。 //使用示例 const texture = Laya.loader.getRes("resources/hero.png", Laya.Loader.IMAGE); const success = atlasManager.addTexture(texture, 0.5, 0); // 添加到指定图集,缩放为 0.5 通过 URL 添加纹理 //接口 addTextureByUrl(url: string, scale: number = 1.0, largeT...

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

15. laya.resource.Texture2D [ 86%]

...Frames No Frames Texture2DProperties | Methods | Constants Packagelaya.resourceClasspublic class Texture2DInheritanceTexture2D BaseTexture laya.resource.Bitmap Texture2D 类用于生成2D纹理。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined...

来源: Laya2.0_api 发布时间: 20190513

16. laya.ani.bone.Templet_API3.0 [ 86%]

...URL off offAll offAllCaller on once setAnimationDataWithCache destroyUnusedResources Constructors constructor new Templet(): Templet Inherited from AnimationTemplet.constructor Overrides Resource.__constructor Defined in laya/ani/AnimationTemplet.ts:127 Returns Templet Properties _id _id: number = 0...

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

17. laya.d3.core.material.SkyPanoramicMaterial_API3.0 [ 85%]

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

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

18. laya.resource.Texture [ 85%]

...x | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher ObjectSubclasses RenderTarget2D Texture 是一个纹理处理类。 Public Properties PropertyDefined By  _atlasID : int = -1Texture  bitmap : * 图片...

来源: laya_api 发布时间: 20170929

19. laya.resource.Texture [ 84%]

...x | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher Object Texture 是一个纹理处理类。 Public Properties PropertyDefined By  bitmap : Texture2D 获取位图。 Texture  destroyed : Boolean[read-on...

来源: Laya2.0_api 发布时间: 20190513

20. laya.d3.resource.DataTexture2D [ 84%]

...ex | Frames No Frames DataTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class DataTexture2DInheritanceDataTexture2D BaseTexture laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By defaulteTexture : Base...

来源: laya_api 发布时间: 20170929