大约有 1,557 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)
...19-11-26 0 1 分享 微博 QZONE 微信 子艮 赞同来自: let sp3d = lf.addChild(Laya.loader.getRes("res/zhadan/1/LayaScene_zhadan/Conventional/zhadan.ls")) as Scene3D; let spCore = sp3d.getChildByName("Canvas") as Sprite3D; spCore.transform.localPosition = new Vector3(0, 0.7, 90); let tp3d = Spr...
来源: Laya_社区 发布时间: 20191126
...unction(){ this.guaSpr.cacheAs = "bitmap"; ape = new Sprite(); this.guaSpr.addChild(ape); ape.loadImage("WBSign/img_guakaituceng.png"); ape.on(Event.MOUSE_MOVE, this, onMouseMove); interactionArea = new Sprite(); interactionArea.blendMode = "destination-out"; ape.addChild(interactionArea); interacti...
来源: Laya_社区 发布时间: 20170615
...引用其的对象无法销毁 this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.camera = new Laya.Camera(); this.camera.transform.translate(new Laya.Vector3(0, 2, 5)); this.camera.transform.rotate(...
来源: Laya_社区 发布时间: 20191102
...光 private addLoadCCDLight() { //聚光灯 this.loadCCDlight = this.scene.addChild(new Laya.SpotLight()) as Laya.SpotLight; this.loadCCDlight.color = new Laya.Vector3(1, 1, 1); this.loadCCDlight.transform.position = new Laya.Vector3(-1, 1.2, 0.0); this.loadCCDlight.direction = new Laya.Vector3(0.15...
来源: Laya_社区 发布时间: 20180515
...s(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChild(sp) var cMask = new Sprite() cMask.graphics.drawCircle(40, 40, 37, "#ff0000") sp.mask = cMask //sp.addChild(cMask) //sp.removeChild(cMask) sp.pos(7,14) console.log(cMask.x, cMask.y) }, null, "image")) 一个圆...
来源: Laya_社区 发布时间: 20180710
...内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 父节点addchild 子节点 这样子,removeself 就解除了 2019-03-12 0 3 分享 微博 QZONE 微信 内涵tv何吓吓 赞同来自: 没记得官方有这个方法,你只能用变量getChild存子节点,然后再addchild到...
来源: Laya_社区 发布时间: 20190312
...this._rootSp.hitArea = new Laya.Rectangle(0, 0, 10000, 10000) this._rootSp.addChild(this.firstSp); Laya.stage.addChild(this._rootSp); } private MouseWheel(e: Laya.Event) { let xs = this.firstSp.scaleX; if (e.delta > 0) { xs = xs * 1.2; } else { xs /= 1.2; } this.firstSp.scale(xs, xs); } } new G...
来源: Laya_社区 发布时间: 20190314
...ar bg1:BackGround= Laya.Pool.getItemByClass("mybg",BackGround); Laya.stage.addChild(bg1); console.log("bg1->",bg1); //对象放回Pool里,并清除对象 Laya.Pool.recover("mybg",BackGround); bg1.removeSelf(); Laya.stage.removeChild(bg1); console.log("bg1->",bg1); //再次从Pool里获取对...
来源: Laya_社区 发布时间: 20180823
...aScene.lh"], Laya.Handler.create(this, onComplete)); ... var shelf = scene.addChild(Laya.Sprite3D.load("LayaScene_layaScene/layaScene.lh")); shelf.transform.position = new Laya.Vector3(-18.69, 1.1, 43.8); 但是无法加载出来,也没报错 附件 : --> t1.rar 2018-04-12 ...
来源: Laya_社区 发布时间: 20180412
...new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog); } } // 弹窗代码 class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.btn_close.on(Laya.Event.C...
来源: Laya_社区 发布时间: 20181216