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

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

561. 粒子加载报错 [ 58%]

... Laya.stage.addChild(sp);  sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } 附件 : --> 2019-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 升级到正式版 试试,...

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

562. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 58%]

...x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGrid = "5,5,5,5"; progressBar.changeHandler = new Handler(this, onChange); Laya.stage.addChild(progressBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.valu...

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

563. 粒子中引用的图片能合图吗 [ 58%]

...20, 1280, laya.webgl.WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_HEIGHT; Laya.stage.alignH = Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(...

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

564. IDE中编辑界面时没有left、right等对齐选项 [ 58%]

...一个对象,其属性“尺寸和位置”处,只有xywidthheight。没有用于屏幕适应的left、right、top、bottom等。 附件 : --> 2019-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

565. 字体切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

...onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png"; this.fontclp.sheet = "012345678...

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

566. Laya 绑定显示内容到骨骼动画 [ 58%]

...is.__bind.x=Laya.stage.width*0.5;         this.__bind.y=Laya.stage.height*0.5;          this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler.create(this,this.testLoadComplete));   }      private __bind:BindSkeleton;     private testLoadComplete():vo...

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

567. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

.../ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSize = 50; //字体大小 this.txtin.c...

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

568. 请问怎么制作一个layabox js版本的加载效果 [ 58%]

...x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.value = 0; progressBar.sizeGrid = "5,5,5,5"; // progressBar.changeHandler = new Handler(this, null); Laya.stage.addChild(progressBar); Laya.timer.loop(300, this, changeValue); } function changeValue() ...

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

569. 分享:如何用代码创建自定义Tab组件 [ 58%]

...aAirDemo { public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; //预加载button的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this,onLoaded)); } private function onLoaded():void { //添加tab容器 var tab:Tab=new ...

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

570. 关于设置动画轴心点问题 [ 57%]

...过getBounds来获取Animation的宽高,设置pivot轴心点为width/2,height/2,同时设置pos值为pivot值的相反值即可。如果pos已经设置过,将pos现有值-(povot.x,pivot.y) 2017-01-19 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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