大约有 55 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)
...reateFromURL off offAll offAllCaller on once setSource create destroyUnusedResources Constructors constructor new HtmlVideo(): HtmlVideo Overrides Bitmap.__constructor Defined in laya/device/media/HtmlVideo.ts:13 Returns HtmlVideo Properties destoryedImmediately destoryedImmediately: boolean Inherit...
来源: Laya3.0_api 发布时间: 20231102
... Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/Texture" Texture Class Texture Texture 是一个纹理处理类。 Hierarchy Resource Texture Index Constructors constructor Properties _id _sizeGrid _stateNum destroyedImmediately lock name offsetX offsetY sourceHei...
来源: Laya3.0_api 发布时间: 20231115
...需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResources()`接口统一销毁。 *...
来源: Laya2.0_文档 发布时间: 20210715
...需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResources()`接口统一销毁。 *...
来源: Laya2.0_文档 发布时间: 20210715
...需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResources()`接口统一销毁。 *...
来源: Laya2.0_文档 发布时间: 20210715
...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
...Frames No Frames HTMLCanvasProperties | Methods | Constants Packagelaya.resourceClasspublic class HTMLCanvasInheritanceHTMLCanvas laya.resource.Bitmap HTMLCanvas 是 Html Canvas 的代理类,封装了 Canvas 的属性和方法。。请不要直接使用 new HTMLCanvas! Public Properties Prop...
来源: laya_api 发布时间: 20170929
引擎2.0.2版本,调用Resource.destroyUnusedResources问题 在切换场景的时候将UI销毁,再调用Resource.destroyUnusedResources销毁大图的纹理资源。在之后的界面中如果用到了这个url对应的bitmap的时候。都会通过recoverBitmap进行一次重新加载,导...
来源: Laya_社区 发布时间: 20191105
...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
...到哪个大纹理。 //使用示例 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