大约有 108 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0043 秒)
... 两个问题: 1. 看运行情况,射线应该是穿越了某些plane实体,但outHitResult.succeeded仍然是false,且collider也是null,方法用错了吗? 2. 截图中射线的方向对吗,camera的位置是0,0,4,但射线的起点看起来是0,0,0,这是为什么? ...
来源: Laya_社区 发布时间: 20191219
...际显示出来的效果是goods.png的纹理。 3d精灵对象类型: let plane = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(w, h,1,1)); 邓中强 • 2019-07-11 17:48 @Laya_Aaron:加载图集图片返回的Texture对象,是需要自己裁切纹理转成Texture2D对象吗? Laya_Aaron ...
来源: Laya_社区 发布时间: 20190710
...ode.videoTexture; this.owner.xxx.getChildByName('Scene3D').getChildByName('Plane').getComponent(Laya.MeshRenderer).sharedMaterial = mat; // 上面代码在3D场景中播放则无任何问题,包括微信浏览器,出问题的是在2D场景中在微信浏览器不能播放视频 // 附件三...
来源: Laya_社区 发布时间: 20230825
...,其实是一个box,只不过高度很小,可看成一个平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(new BoxMesh(4,4,0.001))) as MeshSprite3D; var material:StandardMaterial = new StandardMaterial(); material.albedo = new Vector4(1.3, 1.3, 1.3, 1); material.diffuseTexture = ...
来源: Laya_社区 发布时间: 20161223
... = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); //设置地板可以接受阴影 grid.getChildAt(0).meshRenderer.receiveShadow = true; //获取一个静态网格猴子 var staticLayaMonkey = this.scene.addChild(new Laya.MeshSprite3D(Laya.Loader.getRes("res/thr...
来源: Laya2.0_文档 发布时间: 20210715
...d:Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")) as Sprite3D; //设置地板可以接受阴影 (grid.getChildAt(0) as MeshSprite3D).meshRenderer.receiveShadow = true; //获取一个静态网格猴子 var staticLayaMonkey:MeshSprite3D = scene.addChild(new MeshSpr...
来源: Laya2.0_文档 发布时间: 20210715
... = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")) as Laya.Sprite3D; //设置地板可以接受阴影 (grid.getChildAt(0) as Laya.MeshSprite3D).meshRenderer.receiveShadow = true; //获取一个静态网格猴子 var staticLayaMonkey = this.scene.addChild(new Laya....
来源: Laya2.0_文档 发布时间: 20210715
...ar modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summ...
来源: Laya_社区 发布时间: 20170714
...Laya.loader.create([ // "res/threeDimen/staticModel/grid/plane.lh", // "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", // // "res/threeDimen/particle/RadiusMode.lh", // "res/particles/RadiusMode.part", //...
来源: Laya_社区 发布时间: 20190509
...ar modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summ...
来源: Laya_社区 发布时间: 20190224