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

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

61. 二进制文件打包后,读取不到zip包内的文件 [ 84%]

...     console.log('res,', (typeof res))             Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {                 material.albedoTexture = tex;                 let item = 'res/layabox.png'...

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

62. Failed to execute 'texImage2D怎么处理? [ 84%]

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

63. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 84%]

...ideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.wid...

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

64. WaterPrimaryMaterial的使用 [ 84%]

...ar material: Laya.BaseMaterial = new WaterMaterial();         Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, ...

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

65. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 84%]

...          }                     tex = new Texture2D(0, 0, format, false, false);                     tex.wrapModeU = exports.WarpMode.Clamp;                     tex.wrapModeV = exports.WarpMode.Clamp;          ...

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

66. DataTexture2D是做什么用的 [ 84%]

DataTexture2D是做什么用的 我用base64的数据用 var _texture2d:DataTexture2D = new DataTexture2D();  _texture2d.onAsynLoaded(null, image); material.diffuseTexture=_texture2d; 没报错,但是贴上去是纯灰色,不是图片 DataTexture2D怎么用? 2018-06-05 添加评论 免费帖...

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

67. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 84%]

...  Laya.loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture2D) => {             //在U方向上使用WARPMODE_CLAMP             texture.wrapModeU = Laya.WrapMode.Clamp;             //在V方向使用WARPMODE_CLAMP        ...

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

68. laya.d3.resource.DataTexture2D [ 83%]

...cumentationAll Packages | All Classes | Index | Frames No Frames DataTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class DataTexture2DInheritanceDataTexture2D BaseTexture laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Propert...

来源: laya_api 发布时间: 20170929

69. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 82%]

...a.BlinnPhongMaterial;         //添加漫反射贴图         Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         Laya.Texture2D.load("res/threeDimen/Physics/plywood.j...

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

70. Laya3D [ 82%]

...Laya3D  TERRAINRES : String = TERRAIN[static] Terrain资源。Laya3D  TEXTURE2D : String = TEXTURE2D[static] Texture2D资源。Laya3D  TEXTURECUBE : String = TEXTURECUBE[static] TextureCube资源。Laya3DProperty DetailenbalePhysicspropertyenbalePhysics:*  [read-only] 获取是否可以启...

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