大约有 136 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0036 秒)
Laya2.0 beta4 MeshSprite3D更换颜色BUG 急急急! 游戏中想实现把模型动态更换颜色的需求 写了一个demo发现无法变色 按回车键会触发变色逻辑! 附件已上传 完整工程! 附件 : --> Test1.zip 2018-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20181205
有些模型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
...er = Monster; // this.master_turn(); //添加自定义模型 var box: Laya.MeshSprite3D = this.scene.addChild( new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(2, 2, 2)) ) as Laya.MeshSprite3D; box.transform.translate(new Laya.Vector3(5, 5, 5)); box.transform.rotate(new Laya.Vector3(0, 45, 0), fal...
来源: Laya_社区 发布时间: 20200917
BoxCollider跟随MeshSprite3D变化大小,疑似BUG 如果吧MeshSprite3D的scale设置为0的话,BoxCollider的scale也会变成0,但是再把MeshSprite3D的scale调整回来的时候,BoxCollider却回不来了。 这算bug吗? 2018-12-05 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20181205
...yaScene_Alien/Assets/FBXs_Stacy/EnvArctic_alien-EnvArctic_alien.lm"); this.meshSprite3D = new Laya.MeshSprite3D(tempmodels); scene.addChild(this.meshSprite3D); this.meshSprite3D.transform.position.x = 0; this.meshSprite3D.transform.position.y = 0; this.meshSprite3D.transform.position.z = 10; ...
来源: Laya_社区 发布时间: 20180926
....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
...图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
...ild(new Laya.Sprite3D()); //正方体 var box = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(ne...
来源: Laya2.0_文档 发布时间: 20210715
...ild(new Laya.Sprite3D()); //正方体 var box = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(ne...
来源: Laya2.0_文档 发布时间: 20210714
...ic onTriggerEnter(other:Laya.PhysicsComponent):void { ((this.owner as Laya.MeshSprite3D).meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后逐帧触发(子弹在物品内时) * 注:如...
来源: Laya2.0_文档 发布时间: 20210715