大约有 542 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0054 秒)
...果成功后,使用lh文件加载多个模型,用for语句批量为meshSprite3D添加阴影属性,但仅有最后一个成功(图片绿地上的阴影),for语句内的材质修改却全部都生效了 var mesh:Laya.MeshSprite3D; for(var i =0;i<this.sprite3D._childs.length;i++){ mes...
来源: Laya_社区 发布时间: 20171110
...ader。 private loadEffectComplete():void{ var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh"); this.compileShader(effect); //===========放心使用吧================= var myeffect:Laya.Sprite3D = effe...
来源: Laya_社区 发布时间: 20190404
...出了一个lh文件,打算复用。 var shelf0 = Laya.Sprite3D.load("DoorShelf/shelf.lh"); this.scene.addChild(shelf0); shelf0.transform.translate(new Laya.Vector3(-4,1.2,35)); var shelf3 = Laya.Sprite3D.load("DoorShe...
来源: Laya_社区 发布时间: 20180301
....js:13226) at goldItemNode._onAdded (libs/laya.d3.js:10592) at Sprite3D._addComponentInstance (libs/laya.core.js:13244) at Sprite3D.addComponent (libs/laya.core.js:13291) at game_scene.showPlayerGold (js/bundle.js:278) at game_scene.onPreLoadFinish (js/bundle.js:210) ...
来源: Laya_社区 发布时间: 20200326
...l, 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.mesh...
来源: Laya2.0_文档 发布时间: 20210715
...了,但是检测的结果一直是-1 相关代码:const field: Laya.MeshSprite3D = this.scene.getChildByName("stadium").getChildByName("field") as Laya.MeshSprite3D;//拿到地板 const sprite3d1MeshCollider: Laya.MeshCollider = field.addComponent(Laya.MeshCollider) as Laya.MeshCollider; sprite3d1...
来源: Laya_社区 发布时间: 20180316
... CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable里面把CANNON.Body加入到CANNO...
来源: Laya_社区 发布时间: 20200217
...wner * @param child */ static addChildHelper(owner: Laya.Node, child: Laya.Sprite3D) { let position = child.transform.position.clone() let rotation = child.transform.rotation.clone() let scale = child.transform.getWorldLossyScale().clone() owner.addChild(child) child.transform.position = position ch...
来源: Laya_社区 发布时间: 20200819
...) at PhysicsCollider.__proto._setActive (laya.core.js:7072) at Sprite3D.__proto._activeHierarchy (laya.core.js:13777) at Sprite3D.__proto._activeHierarchy (laya.core.js:13784) at Scene3D.__proto._activeHierarchy (laya.core.js:13784) at Scene3D.__proto._processActive (la...
来源: Laya_社区 发布时间: 20190418
...,在游戏中需要分别创建为带Rigidbody3D和带PhysicsCollider的Sprite3D, 这种情况一般要怎么处理啊。 只能在unity里分别导出为两个.lh吗(一个只有碰撞体,一个有碰撞体和刚体)。 2020-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20200521