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

大约有 712 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0046 秒)

561. UI适配的问题 [ 60%]

...     什么是百分比布局?百分比布局就是子节点的xywidth、height都是相对于父节点的百分比的,这样可以使UI内部所有控件的相对位置保持不变,适配起来更方便。     官方对于这种机制是怎么看的? 2018-03-12 添加评论 免费...

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

562. 内嵌模式创建scene,运行时报找不到json文件 [ 60%]

...elloUI extends Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png","height":67},"compId":3}],"loadList":["comp/label.png"],"loadList3D":[]}; constru...

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

563. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 59%]

...; var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); picture.on(Event.MOUSE_DOWN, this, onStartPicture(Picture); } function ...

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

564. 如何在3d场景中添加文字 [ 59%]

...; this.txtName.pos(this._outPos.x / Laya.stage.clientScaleX - this.txtName.width/2, this._outPos.y / Laya.stage.clientScaleY);   2017-10-10 0 0 分享 微博 QZONE 微信 ltmking 赞同来自: //设置其他玩家角色名称跟随角色模型 这后边的代码放到针刷新事件里 2017-10-10 0...

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

565. 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? [ 59%]

...graphics.drawCircle(0, 0, 350, null, "#ff0000", 4); sprite.pivotX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild(sprite);  Laya.Tween.to(sprite, {scaleX:1.5, scaleY:1.5, alpha:0}, 5000); 2018-07-08 添加评论 免...

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

566. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 59%]

....progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressBar.width = 400; this.progressBar.x = (Laya.stage.width - this.progressBar.width) / 2; this.progressBar.y = Laya.stage.height / 2; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Handler(this, this.onC...

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

567. HtmlDivElement限制文本宽度无效? [ 59%]

...DivElement(); this.labaContent.style.fontSize = 22; this.labaContent.style.width=100; this.labaContent.style.wordWrap=false; this.labaContent.x = 60; this.labaContent.y = 5; 为什么还是不行呢?请问 我的文本是通过innerHTML <span>输出的 2017-09-15 添加评论 免费帖 --> ...

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

568. 调用Laya.Utils.parseXMLFromString 时一直报undefined的错误 [ 59%]

...= treeData;     // tree.size(300, 300)     // tree.x = (Laya.stage.width - tree.width) / 2;     // tree.y = (Laya.stage.height - tree.height) / 2;     // Laya.stage.addChild(tree); }      附件 : --> 2018-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

569. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...,此方法只执行一次 */ 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...

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

570. 保存数据的数组在回调的时候变为undifine [ 59%]

...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 Skeleton 类播放完成一遍后有没事件或者回调 Layabox 可不可以刷新骨骼数据 聊天室存储数据 三国塔防游戏!终于开发完了,数据平...

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