大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0053 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel...
来源: Laya2.0_文档 发布时间: 20210715
...ar glowFilter: Laya.GlowFilter = new Laya.GlowFilter("#ffff00", 10, 0, 0); this.myLabel.filters = [glowFilter]; 这样写,没有效果。 2017-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞...
来源: Laya_社区 发布时间: 20170913
...ne.LightmapData.get_lightmapColor'. var mid=method.$_TID || (method.$_TID=(this._mid++)*100000); reflection error: can not find method signature 反射错误 Laya.timer.loop 的 Laya.timer.clear 问题 Timer.clear清理同caller同method的多个loop Laya.timer.loop() 报错 Cannot read property 'lo...
来源: Laya_社区 发布时间: 20180505
...0); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("hu.ttf"); if(Browser.window.conch) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Text=new T...
来源: Laya_社区 发布时间: 20161219
...exture' of null 02-06 14:59:43.858 6545 6658 I LayaBox : var glTexture=this._source=gl.createTexture(); 02-06 14:59:43.858 6545 6658 I LayaBox : ^ 02-06 14:59:43.858 6545 6658 I LayaBox : TypeError: Cannot read property 'createTexture' of nu...
来源: Laya_社区 发布时间: 20180206
...E_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.beginLoad)); } private beginLoad(): void { console.debug("aaaaaaaaaaaaaaaaa"); var img = new Laya.Sprite(); img.loadImage("res/test.jpg"); Laya.stage.addChild(img); } } new GameMain(); 调试的时候可以显示...
来源: Laya_社区 发布时间: 20180416
...er = new Laya.ColorFilter(blackColorMat); if(blackTextfilter){ this.textField.filters = [blackTextfilter]; } 我通过以上的方式创建一个颜色滤镜;但是blackTextfilter这个new之后返回的是undefined的,请问什么情况下会创建失败。 2019-08-22 添加...
来源: Laya_社区 发布时间: 20190822
...纹理 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` (图1)
来源: Laya2.0_文档 发布时间: 20210714
...下一版修复下 var uv=Array.prototype.slice.call(this.uv); 2019-06-25 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 感谢您的反馈,已经改了,下个版本就好了,你改的是对的。 2019-06-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...
来源: Laya_社区 发布时间: 20190625
...nction (_super) { function TestScene() { TestScene.super(this); } Laya.class(TestScene,"TestScene",_super); return TestScene; }(ui.TestViewUI)); 1.1创建好ui后,导出,再自己创建个脚本,粘贴上上面的代码,ui.TestViewUI 这个是你创...
来源: Laya_社区 发布时间: 20180522