大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0059 秒)
...lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void { scene.addChild(sprite); sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); })); 报错信息 Uncaught TypeError: Cannot read property 'transform' of undefined at SkinnedMeshRenderer._computeSubSkinnedData (laya...
来源: Laya_社区 发布时间: 20200104
...BootClass", MyBootPage2UI); UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot.super(this); this.Boot.selectHandler = new Laya.Handler(this, onSelect, null, false);//设置 tab 的选择项发生改变时执行的处理器。 console....
来源: Laya_社区 发布时间: 20160722
... 这个我倒没试过,我是用LOADER加载的,加载完后执行this.addChild(event.target.loader); jiahuafu • 2016-07-19 10:37 谢谢!另外一个游戏我去试下 jiahuafu • 2016-07-22 10:03 preSwfAssets这方法管用,哈哈,请问这个原理是什么? cuixueying • 2016-07-2...
来源: Laya_社区 发布时间: 20160718
....pos(540,70); balloon.filters = [new Laya.ColorFilter(redMat)]; Laya.stage.addChild(balloon); 附件 : --> 2016-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你好: 我这边...
来源: Laya_社区 发布时间: 20160525
...写。 this.contentDiv = new Laya.HTMLDivElement(); this.contentT.parent.addChild(this.contentDiv); this.contentDiv.x = this.contentT.x; this.contentDiv.y = this.contentT.y; this.contentDiv.width = this.contentT.width; this.contentDiv.height = this.contentT.height; this.contentDiv.style.width = this...
来源: Laya_社区 发布时间: 20191028
...事件是挂在ShurikenParticleSystem上的。 var wjqs:Sprite3D = scene.addChild(Sprite3D.load("fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event.COMPLETE, this, function(...
来源: Laya_社区 发布时间: 20170512
... = "waken"; image.size(823,492); image.centerX=0; image.centerY=1; thisObj.addChild(image); }; /**加载完图片后点击事件重新设置pixels*/ var imageNode:Laya.Image = this.getChildByName("waken") as Laya.Image; var imageSprite:Laya.Sprite; var uint8Array:Uint8Array = imageNode.source.bitmap...
来源: Laya_社区 发布时间: 20190923
...tf; debug_txt.text = "start..."; stage.addChild(debug_txt); if (ExternalInterface.available) { var params:String = ExternalInterface.call("getParams"); if (params.indexOf("?"...
来源: Laya_社区 发布时间: 20200217
...idth) / 2; ape.y = (Laya.stage.height - texture.height) / 2; Laya.stage.addChild(ape); } function applayFilter() { //创建一个发光滤镜 //var glowFilter = new GlowFilter("#ffff00", 10, 0, 0); //设置滤镜集合为发光滤镜 //ape.filters = [glowFilter]; splashSp(ape); } })(); 2018-10...
来源: Laya_社区 发布时间: 20181012
...nter'; Laya.stage.alignV = 'middle'; var homeUI = new HomeUI(); Laya.stage.addChild(homeUI); 4、我这里采用的是noborder模式来适配 根据官方给的适配说法 (以及过往的H5游戏的开发经验) 这种模式是将整个画布等比例放大到屏幕铺满的状态 如下...
来源: Laya_社区 发布时间: 20180504