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

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

1. laya.loaders.Texture2DLoader_API3.0 [ 100%]

...nherited Externals Only exported Menu Globals "laya/loaders/TextureLoader" Texture2DLoader Class Texture2DLoader Hierarchy Texture2DLoader Implements IResourceLoader Index Constructors constructor Methods load Constructors constructor new Texture2DLoader(): Texture2DLoader Defined in laya/loaders/Te...

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

2. laya.loaders.TextureLoader_API3.0 [ 92%]

...Returns Promise<Texture> wrapTex2D wrapTex2D(task: ILoadTask, tex2D: Texture2D): Texture Defined in laya/loaders/TextureLoader.ts:213 Parameters task: ILoadTask tex2D: Texture2D Returns Texture Globals "laya/loaders/TextureLoader" RenderTextureLoader Texture2DLoader TextureLoader load wrapTex2...

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

3. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...url2 = "xxxxx.png"; var type1 = Laya.Loader.IMAGE; var type2 = Laya.Loader.TEXTURE2D; Laya.loader.load([url1, url2]).then((res:Array<any>)=> { //加载多个,不带类型 }); Laya.loader.load([url1, url2], type).then((res:Array<any>)=> { //加载多个,统一设置类型 }); La...

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

4. laya.loaders.VideoTextureLoader_API3.0 [ 81%]

...;VideoTexture> Globals "laya/loaders/TextureLoader" RenderTextureLoader Texture2DLoader TextureLoader VideoTextureLoader load compressedFormats constructParams2d internalResources videoFormats propertyParams2d Legend Object literal Variable Function Type alias Class Class with type parameter Meth...

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

5. laya.loaders.RenderTextureLoader_API3.0 [ 81%]

...rTexture> Globals "laya/loaders/TextureLoader" RenderTextureLoader load Texture2DLoader TextureLoader VideoTextureLoader compressedFormats constructParams2d internalResources videoFormats propertyParams2d Legend Object literal Variable Function Type alias Class Class with type parameter Method En...

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

6. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 79%]

...HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = ne...

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

7. laya.net.Loader_API3.0 [ 76%]

...CHY IMAGE JSON MATERIAL MESH SOUND SPINE TERRAINHEIGHTDATA TERRAINRES TEXT TEXTURE2D TEXTURECUBE TTF VIDEO XML downloader extMap groupMap loadedMap preLoadedMap typeMap Accessors loading Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearTextureRes clearUnLoaded event fetch getRes hasLi...

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

8. laya.net.Loader [ 73%]

...ring = text[static] 文本类型,加载完成后返回文本。Loader  TEXTURE2D : String = TEXTURE2D[static] Texture2D资源。Loader  TEXTURECUBE : String = TEXTURECUBE[static] TextureCube资源。Loader  TTF : String = ttf[static] TTF字体类型,加载完成后返回null。Loader  XM...

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

9. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...H MESH Mesh资源 Laya.Loader.MATERIAL MATERIAL Material资源 Laya.Loader.TEXTURE2D TEXTURE2D Texture2D资源 Laya.Loader.TEXTURECUBE TEXTURE2D TextureCube资源 Laya.Loader.SPINE SPINE Spine资源 二、加载多个资源 有很多时候,我们需要把大量的资源在Loading界面进行预加...

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

10. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...if #include "Sprite2DFrag.glsl"; void main() { clip(); vec4 textureColor = texture2D(u_baseRender2DTexture, v_texcoord); // 计算渐变因子 float gradientFactor = dot(v_texcoord, normalize(u_gradientDirection)) * 0.5 + 0.5; // 混合渐变颜色 vec4 gradientColor = mix(u_gradientStartColor, u_gr...

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