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

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

11. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 86%]

...= Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(mesh); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("LayaScene_01/Assets/model/loveScene_jianzhu.lm",Laya.Handler.create(this,this.onCreateComplet...

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

12. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 86%]

...typescript //新建一个球体模型并添加到舞台上 var sphere:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(1))) as Laya.MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:Laya.SphereColliderShape = new Laya.SphereColliderShape(1); //给球...

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

13. 有些模型load之后,MeshSprite3D 的共享材质个数为0,无法对材质进行操作 [ 86%]

有些模型load之后,MeshSprite3D 的共享材质个数为0,无法对材质进行操作 _disObj3d = Sprite3D.load("../../res/models/cike.lh"); _scene3d.addChild(_disObj3d); _disObj3d.once(Event.HIERARCHY_LOADED, null, function(sender:Sprite3D):void {       var ms:MeshSprite3D = _disObj3d...

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

14. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 85%]

...创建了一个平面。如图1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/gras...

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

15. sprite3D可以设置碰撞体吗 [ 84%]

...1 浏览: 1516 关注: 2 人 吴杨俊文 • 2018-07-13 09:22 官方的是meshsprite3D诶 Laya_Aaron • 2018-07-13 10:29 @吴杨俊文:就是加载meshsprite3d里 吴杨俊文 • 2018-07-13 10:37 但如果我用的是.lh文件,也就是只能sprite3D,那该怎么添加嘞 Laya_Aaron • 2018-...

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

16. laya.gltf.glTFUtils_API3.0 [ 84%]

...Extensions Extras Methods RegisterExtra UnRegisterExtra _createMesh _createMeshSprite3D _createSceneNode _createSkinnedMeshSprite3D _createSprite3D _createdefaultMaterial applyPBRMetallicRoughness applyTransform calSkinnedSpriteLocalBounds getAccessorComponentsNum getAnimationRoot getAttributeNum ge...

来源: Laya3.0_api 发布时间: 20231102

17. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 81%]

...,我们可以通过它们来获取模型上的材质。 ​ **Tips**:MeshSprite3D模型中为meshRenderer,SkinnedMeshSprite3D模型中为skinnedMeshRenderer。 ###### 这两个类多是一些继承自'父类'的共有的接口,可以查看'父类' **BaseRenderer** 的API([API地址](https:...

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

18. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 80%]

...图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", La...

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

19. 3d模型预加载后二次调用报错 [ 79%]

... 微信 zwjioro 赞同来自: 自己写了一个类,类里有个成员是MeshSprite3D,MeshSprite3D在constructor里初始化。现在想重复的new这个类,第一次可以正常创建对象,第二个new出来的对象的MeshSprite3D就成了undefined了。 不知道我说清楚了没~ ...

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

20. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 79%]

...(null, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1....

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