大约有 99 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0130 秒)
...aterial; //把圆锥形3D节点对象添加到3D场景节点下 this.scene.addChild(cone); //设置随机位置 this.tmpVector.setValue(Math.random() * 6 - 2, 6, Math.random() * 6 - 2); cone.transform.position = this.tmpVector; //为圆锥形3D节点对象创建刚体碰撞器 let _rigidBody = <L...
来源: Laya3.0_文档 发布时间: 20251010
...(0.5, 0.5); mArmature.on(Event.STOPPED, this, completeHandler); Laya.stage.addChild(mArmature); play(); }); } function completeHandler() { mArmature.stop(); mArmature.removeSelf(); mArmature.removeChildren(); mArmature.destroy(true); Laya.Pool...
来源: Laya_社区 发布时间: 20181120
...gt; { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d.addChild(sp3); }); }) } printProgress(r...
来源: Laya3.0_文档 发布时间: 20251010
...t btn = IEditor.GUIUtils.createButton(); btn.setPos(150, 180); this._panel.addChild(btn); } accept(asset: IEditor.IAssetInfo): boolean { return asset.ext === "abc"; //应用于扩展名是abc的资源 } async refresh(asset: IEditor.IAssetInfo, render3DCanvas: IEditor.IRender3DCanvas): Promise<voi...
来源: Laya3.0_文档 发布时间: 20251010
...(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i =...
来源: Laya3.0_文档 发布时间: 20251010
...(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i =...
来源: Laya3.0_文档 发布时间: 20250104
...aya.Vector3(outs[i].point.x, outs[i].point.y, outs[i].point.z); this.scene.addChild(box); } } } (动图7-1) 7.2 可视遮罩层Layer 前面5.4节中也提到过Culling Mask的用处,在我们制作游戏时,我们也可用通过代码来达到‘ 隐身 ’的效果。 还是用3D-RPG项目...
来源: Laya3.0_文档 发布时间: 20251010
...; for (var i = 0; i < this._spriteNums; i++) { let sprite = ownerSprite.addChild(new Laya.Sprite3D()); let filter = sprite.addComponent(Laya.MeshFilter); let render = sprite.addComponent(Laya.MeshRenderer); // 设置相同的材质与网格 filter.sharedMesh = mesh; render.sharedMaterial = this.b...
来源: Laya3.0_文档 发布时间: 20251010
...dler.create(this, function(){ var scene3d=new Laya.Scene3D(); that.owner.addChild(scene); var model=Laya.loader.getRes(window.getPath("res/3d/baseman01.lh")); var player=model.clone(); scene3d.addChild(player); })); 然后用android扫描 layanative二维码 ,就会出错 . [img]dat...
来源: Laya_社区 发布时间: 20190725