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

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

181. Sprite3D-Sprite3D克隆 [ 53%]

....animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya...

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

182. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 53%]

...ector3(1, -1, -1); //加载网格 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Lay...

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

183. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 53%]

...ir需要注意的 请问下加载TFF字体要怎么加载呢? lh文件内meshSprite添加阴影属性无效 LayaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, 位图字体不显示 为什么给Sprite容器添加点击事件没反应 2.7.1 加载的ttf不生效 怎么讲la...

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

184. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 53%]

...bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya.MeshColliderShape(); bulletShape.mesh = bullet.meshFilte...

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

185. StaticModel_MeshSample例子运行不起来 [ 53%]

...-30, 0, 0), true, false);         var mesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/staticModel/sphere/sphere-Sphere001.lm"))) as Laya.MeshSprite3D;         mesh.transform.localPosition = new Laya.Vector3(-0.3, 0.0, 0.0);         mesh.transform.lo...

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

186. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 52%]

...res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRend...

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

187. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 52%]

...res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRend...

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

188. 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? [ 52%]

...贴不同的贴图,该如何处理? var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.translate(new Laya.Vector3(10, 10, 10)); var material = new Laya.StandardMaterial(); material.diffuseTextu...

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

189. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 52%]

...)) as Laya.Sprite3D; //正方体 var box = this.sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane())) as Laya.MeshSprite3D; this.box = box; box.transform.position = new Laya.Vector3(0.0, 0.0, 0); box.transform.rotate(new Laya.Vector3(90, 0, 0), false, false); Laya.loader.load(th...

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

190. 用layaair如何加載蒙皮動畫,请问怎么加载.lm文件和.ani文件,有沒有實例可以看下 [ 52%]

...his.scene.CurrentCamera = this.camera; //男角色 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("3d/man/CunMinNan-cunminnan.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01, 0.01, 0.01); this.roleMan.transform.localPostion = new Laya.Vertor3(0,-0.5,-3); this.scene.addChild(thi...

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