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

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

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

...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

22. Laya2.0 的3d截图 [ 91%]

...     let h: number = gl.drawingBufferHeight;         let texture2dLaya.Texture2D = new Laya.Texture2D(w,h,Laya.TextureFormat.R8G8B8A8,false,false);         texture2d.setPixels(pixels);         let tex: Laya.Texture = new Laya.Texture(texture2d);     ...

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

23. 天空-天空穹 [ 90%]

...skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.S...

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

24. Laya.Texture2D.load崩溃问题 [ 90%]

Laya.Texture2D.load崩溃问题 var material = new Laya.BlinnPhongMaterial();   Laya.Texture2D.load("ceshi.jpg", Laya.Handler.create(this, function (texture) { material.albedoTexture = texture; })); 附件 : --> 2020-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

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

...  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

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

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

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

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

...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

28. 如何把一个像素数组生成一张texture2D [ 88%]

如何把一个像素数组生成一张texture2D 我的项目里自己获取了需要的像素矩阵,但我不知道如何将这些uint8Array像素数组去创建一张texture2d,也没有在官网api找到办法,请帮助我。 2018-09-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

29. 射线检测-放置物体 [ 87%]

...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

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

...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