大约有 541 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
...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
....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
...出了一个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
...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
...ot;) as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle") as Laya.Sprite3D; console.log(tiger); var animator:Laya.Animator = tiger.getComponentByIndex(0) as Laya.Animator; animator.play("idle"); var cat:Laya.Spr...
来源: Laya_社区 发布时间: 20180317
... 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
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 缓动Tween能用在3D物体或者特效上面吗? Ts 编辑提示error TS5023: Unknown option 'p' LayaA...
来源: Laya_社区 发布时间: 20190621