• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 969 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0099 秒)

931. vbox动态添加子项目问题 [ 52%]

...要不不会自动排序,参考代码:var vbox:HBox = new HBox(); Laya.stage.addChild(vbox); vbox.width = 500; vbox.height = 300; var image:Image = new Image(); image.skin = "rank/132.jpg"; vbox.addChild(image); image.size(100,100); var image2:Image = new Image(); image2.skin = "rank/132.jpg"; v...

来源: Laya_社区 发布时间: 20180829

932. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 51%]

...           this.label.zOrder=9980             Laya.stage.addChild(this.label);             this.label.visible = false;             this.OpenLabel();         }         private OpenLabel() {             this.label.visible = tru...

来源: Laya_社区 发布时间: 20190514

933. [LayaAir3]list.selectHandler [ 51%]

...n.skin="resources/ui/目录2.png"; let modelCtrl:ModelCtrl =Laya.stage.getChildByName("Scene3D").getComponent(ModelCtrl) as ModelCtrl; if(modelCtrl!=null){ this.uiCtrl.InitLeftUI(modelCtrl.data.result); } if(this.uiCtrl._tagList!=null){ this.uiCtrl._tagList.visible=true; } }else{...

来源: Laya_社区 发布时间: 20241014

934. 如何使用graphics绘画虚线 [ 51%]

...;_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);

来源: Laya_社区 发布时间: 20170423

935. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 51%]

...染模式 Laya.init(600, 400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //按钮资源路径 var skin = "./res/img/btn_test.png"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建...

来源: Laya2.0_文档 发布时间: 20210714

936. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 51%]

...加这一行图片正常显示,但是方图              //Laya.stage.addChild(cMask); //测试了坐标区域,完全正确正好在图像上 })); 2018-11-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...

来源: Laya_社区 发布时间: 20181119

937. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 51%]

...染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = ne...

来源: Laya2.0_文档 发布时间: 20210714

938. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 51%]

...ris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = ...

来源: Laya_社区 发布时间: 20190117

939. spine 播放错乱 [ 51%]

...parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError()...

来源: Laya_社区 发布时间: 20210813

940. 文字显示模糊 [ 51%]

...Height+10;             _txt.y=60;             Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非常模糊,但是在pad上比较清晰,为什么呢?   2018-02-01 0 1 分享 微博 QZONE 微信 186*****590 赞同来自: 同...

来源: Laya_社区 发布时间: 20180131