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

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

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

... 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"; vbox.addChild(image2); image2.size(100,100); 2...

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

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

...a.Label(val); this.lbl.name="val"; this.lbl.size(Item.width,Item.height); this.lbl.align="center"; this.lbl.valign="bottom"; this.lbl.padding="0,0,1,0"; this.btn.addChild(this.lbl); } this.btn.name=index.toString(); this.uiCtrl=uiCtrl; this.btn.on("change...

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

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

..._img, Laya.Handler.create(head_img, function () {              this.height = this.width = 77;        var cMask = new Laya.Sprite();//创建遮罩对象        var r = 38.5; //遮罩圆形半径              cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮...

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

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

... Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.l...

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

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

...nterval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...

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

876. spine 播放错乱 [ 51%]

...ild(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() { console.error("load spine error"); } private play(): void { console.log("1111111111...

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

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

...true;             _txt.width=300;             _txt.height=_txt.textHeight+10;             _txt.y=60;             Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非常模糊,但是在pad上比较清晰,...

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

878. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 51%]

...0000"); this._body.width = this._objectInfo.templateInfo.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(Event.MOUSE_OUT, this, this.__onMouseOutHole); } this.pos(this._objectInfo.templateInf...

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

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

... Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https...

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

880. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 51%]

...调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取消。</p>          * @param url       图片地址。          * @param complete  (可选)加载完成回调。          * @return  返回精灵对象本身。   ...

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