大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0062 秒)
...ite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, ca...
来源: Laya_社区 发布时间: 20181022
...决了: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh"); scene.addChild(this.role3D); this.role3D.on(Laya.Event.HIERARCHY_LOADED,this,function(){ this.role3D.transform.scale = new Laya.Vector3(0.7,0.7,0.7); this.role3D.transform.position = new Laya.Vector3(0,1.2,0); } 2018-03-09 0 0 ...
来源: Laya_社区 发布时间: 20180309
...一个UI的一个sceneColor为白色然后F12发布,为什么 Laya.stage.addChild不生效,得设置bgColor设置为白色才生效? thekingreturn • 2018-03-19 11:32 也就是说在IDE面板设置的不生效,得用代码再设置一遍
来源: Laya_社区 发布时间: 20180124
..._TRANSPARENT设置透明度不行了? var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new ...
来源: Laya_社区 发布时间: 20190126
...下 //加载spine动画 this.skeleton = new Laya.Skeleton (); Laya.stage.addChild(this.skeleton); this.skeleton.pos(parseInt (npcPos[0]), parseInt (npcPos[1])); this.skeleton.load (this.curNpcInfo.npcPath); 附件 : --> 70003.zip 2019-05-16 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20190516
...接 提交 1 个回复 Supermang42 赞同来自: 搜尋代碼 Laya.stage.addChild( xxx ); 並把這段代碼註解掉,即可關閉這個 Dialog 視窗。 2017-09-01 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 gonna 相关问题 l...
来源: Laya_社区 发布时间: 20170901
...colorPicket 的颜色改变回调函数。 Laya.stage.addChild(colorPicket);//将此 colorPicket 对象添加到显示列表。 } private function onChangeColor(colorPicket:ColorPicker):void { trace("当前选择...
来源: Laya_社区 发布时间: 20171120
...出的LH格式粒子特效,加载完成不回调 this.lz = this.sceneP.addChild(Laya.Sprite3D.load("res/h5/LayaScene_Effect/Effect.lh")) as Laya.Sprite3D; this.lz.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); }); 之前是按照ls导出的不回调,你们在...
来源: Laya_社区 发布时间: 20180327
... longgu.pos(dragronX, dragronY); parent.addChild(longgu); longgu.play(0, isLoop); longgu.on(Event.STOPPED, this, function():void { Laya.stage.removeChild(longgu); ...
来源: Laya_社区 发布时间: 20170406
...omponent):void { this.cab.addChild(child); } public function getDevices():Array { return this.cab.getChildren(); } ...
来源: Laya_社区 发布时间: 20180202