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

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

51. 资源加载 · LayaAir3.0文档 · LAYABOX [ 77%]

...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_文档 发布时间: 20230728

52. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 77%]

...。 ![](img/2.png)(图2) #### 3. 纹理加载 ​ 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正方体,并且将加载的纹理设置为他的纹理。这个操作实际上和3D简单示例的操作是相同的。 ```typescript //加载纹理 Texture2D.load("res/thre...

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

53. Failed to execute 'texImage2D怎么处理? [ 77%]

Failed to execute 'texImage2D怎么处理? 我用 var _texture2d:Texture2D = new Texture2D(); _texture2d.onAsynLoaded(null, image); image是一个base64数据, 然后就报下面的错误 "Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signatur...

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

54. 射线检测-点击行走 [ 77%]

...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.me...

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

55. 材质-BlinnPhong-高光贴图 [ 77%]

....skinnedMeshRender.materials[i]; //高光贴图 mat.specularTexture = Laya.Texture2D.load(this.specularMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { dude1.transform.rotate(this.rotation); dude2.transform.rotate(this.rotation); }); }class BlinnPhong_SpecularMap { private scene:Laya.Scene;...

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

56. 高级应用-闪光 [ 76%]

...litter.glitterRender.sharedMaterial; glitterMaterial.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/layabox.png"); glitterMaterial.albedo = new Laya.Vector4(1.3, 1.3, 1.3, 1); glitterTemplet.lifeTime = 1.3; glitterTemplet.minSegmentDistance = 0.1; glitterTemplet.minInterpDistance = 0.6; ...

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

57. 材质-BlinnPhong-法线贴图 [ 76%]

...Sprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.transform.rotate(this.rotation); monster2.transform.rotate(this.rotation); }); }class BlinnPhong_NormalMap { private scene:Laya.Scen...

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

58. 百度小游戏的5M本地包与动态资源加载(TypeScript-小游戏适配文档-百度小游戏) [ 76%]

...本地路径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过5M的话,只要能找到本地的资源,怎么写也没问题。 但是, 百度小游戏的本地包有5M的限制,一旦...

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

59. 又又发现惊天大bug [ 76%]

又又发现惊天大bug 使用Texture2D.load这个图片报错https://flock.oss-cn-beijing.aliyuncs.com/avatar/2e9c1503-3c16-354c-7c82-4cd8508a1685?x-oss-process=image/resize,h_432,m_lfit   原因_loadTexture2D方法里面解析不出来地址类型,临时解决方案type给个默认值nativeim...

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

60. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 76%]

...本地路径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是, 微信小游戏的本地包有4M的限制,一旦...

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