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

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

21. 有些模型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

22. 加载到舞台3D模型不显示贴图 [ 85%]

...on (sprite) { var meshSprite = sprite.getChildAt(0);//此对象不一定是MeshSprite3D类型,会导致出错 var mesh = meshSprite.meshFilter.sharedMesh; mesh.once(Laya.Event.LOADED, null, function (mesh) { for (var i = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var material =...

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

23. 物理刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 85%]

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

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

24. 自定义shader-简单shader [ 85%]

...a.addComponent(CameraMoveScript); 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_示例 发布时间: 20240929

25. Cannot read property '_physicsUpdateList' of null 错误 [ 84%]

...)     at PhysicsCollider.__proto._destroy (laya.core.js:6989)     at MeshSprite3D.__proto._destroyAllComponent (laya.core.js:13738)     at MeshSprite3D.__proto.destroy (laya.core.js:13089)     at MeshSprite3D.__proto.destroy (laya.d3.js:29943)     at MeshSprite3D.__proto.destroy (laya...

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

26. 如何实现3d遮罩效果? [ 84%]

....animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.RenderTexture; import laya.d3.resource.models.Mes...

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

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

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

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

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

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

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

...创建了一个平面。如图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