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

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

2411. UI编辑器编辑导出的Iamge图,不能再代码里loadImage吗? [ 68%]

...mage。变量名为test。 然后代码里对这个Image重新load图形。this.test.loadImage("pic/close.png") 完了发现并没有把"close.png"加载进去,只是大小变为了close.png的大小?只是为何 2018-08-16 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

2412. [LayaAir3]TextArea的问题 [ 68%]

...的属性focus,例如在你的示例里,添加如下代码即可。   this.TextArea.focus = false; 2025-10-10 0 0 分享 微博 QZONE 微信 LayaAir小牛 赞同来自: 我这里测试是可以,这是录制的视频,使用的是最新版本3.3.2,您可以上传一个demo以便更方便的...

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

2413. laya.ui.Tree_API3.0 [ 68%]

.../clip_tree_folder.png", "resource/ui/clip_tree_arrow.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var xmlString:String;//创建一个xml字符串,用于存储树结构数据。 xmlString = "<root><item label='box1'><abc...

来源: Laya3.0_api 发布时间: 20231115

2414. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 68%]

...,求解惑 var login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,...

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

2415. mac安装layanative失败!!! [ 68%]

...: getaddrinfo ENOTFOUND npm.taobao.rog npm.taobao.rog:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm...

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

2416. [LayaAir3]动态添加2d物理引擎shape无效 [ 68%]

...shape无效   rig.shapes = [shape];   sp.addComponentInstance(rig);   this.Sprite.parent.addChild(sp);   //设置ide中Sprite节点的shape有效   this.Sprite.getComponent(Laya.RigidBody).shapes = [shape]; 附件 : --> LayaProject_(2).zip 2025-09-12 3 条评论 免费帖 --> 分享 微博 QZON...

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

2417. graphics持续绘制扇形问题 [ 68%]

...);   pie = new Sprite(); Laya.stage.addChild(pie); Laya.timer.frameLoop(1,this,onLoop); }   private var curAngle:Number = 0; private function onLoop():void { pie.graphics.drawPie(300,300,100,curAngle,curAngle+1,"#000000"); curAngle+=1; if(curAngle>360) { Laya.timer.clear(this,onLoop); } } 为...

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

2418. Laya.Scene.open 中的complete参数如何取得场景实例? [ 68%]

...        var handler : laya.utils.Handler = laya.utils.Handler.create(this, this.onGetStartScene);         GameConfig.startScene && Laya.Scene.open(GameConfig.startScene, true, null, handler ); // open的返回值是void,所以不能通过open的返回值拿到     }     o...

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

2419. UI-Image [ 68%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Image = Laya.Image; let dialog = new Image("res/ui/dialog (3).png"); Laya.stage.addChild(dialog); dialog.pos(165, 62.5); } } new UI_Image();module laya { import Stage = Laya.Stage; import Image...

来源: Laya2.0_示例 发布时间: 20251223

2420. .lh 文件不能在同一js文件内重复引用吗? [ 68%]

...ar shelf0 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf0);            shelf0.transform.translate(new Laya.Vector3(-4,1.2,35));            var shelf3 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(s...

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