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

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

441. 分包项目, 加载js时报错 [ 66%]

...色             txt.color = '#ffffff';             this.addChild(txt);                          var v:View = new View();             v.graphics.drawCircle(50, 50, 100, "#000000");             v.pos(100, 100);             this.addChild(v)...

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

442. 图片遮罩大小跟设置一致 [ 66%]

...howApe() { // 方法1:使用loadImage var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d...

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

443. Text 居中 搭配 Tween 显示结果有问题。 [ 66%]

... txt.height = 600; txt.align = "center"; txt.valign = "middle"; Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX:2, scaleY:2, }, 1000, Laya.Ease.elasticOut,null,1000);  画布800x600,在屏幕正中间显示一行字,通过缓动放大倍数到2倍,改变位置,结果发现缓动把位置...

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

444. 水平滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/hscroll.png", "atlas/comp/hscroll$bar.png", "atlas/comp/hscroll$down.png", "atlas/comp/hscroll$up.png"); Laya.loader.load(skins).then...

来源: Laya3.0_文档 发布时间: 20251010

445. 垂直滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png"); Laya.loader.load(skins).then...

来源: Laya3.0_文档 发布时间: 20251010

446. 设置pivot后,精灵位置显示位置正确 [ 66%]

..., width, height, undefined, "#00ff00", 1) this.sp.pos(500, 500) Laya.stage.addChild(this.sp); } } new GameMain();这是运行截图,发现中心点的位置并是(500, 500)   附件 : --> 2017-12-30 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

447. Tiled插入一个新的GridSprite,只能显示在部分区域 [ 66%]

...a(TiledMapManager.Instance.TiledMap); gsp.updatePos(); mapLayer._childs[0].addChild(gsp); 附件 : --> bug.png 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 第三方的官方...

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

448. LayaUI中的input组件显示 [ 66%]

...er.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })();   附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Monica - 知识达人 赞同来...

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

449. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 66%]

...geHandler = new Handler(this, this.onChange); //加载到舞台 Laya.stage.addChild(this.hScrollBar); //创建提示信息 this.createPromptText(this.hScrollBar) } /***创建提示信息***/ private createPromptText(scrollBar:ScrollBar):void { //实例化提示信息 this.promptText=new Text(); //...

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

450. 为什么显示[ 66%]

...s.mouse_x,this.mouse_y+100); sps.graphics.drawTexture(texture); Laya.stage.addChild(sps);   代码有什么问题吗   为什么舞台没有显示   2018-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 w1...

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