大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0073 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...mage。变量名为test。 然后代码里对这个Image重新load图形。this.test.loadImage("pic/close.png") 完了发现并没有把"close.png"加载进去,只是大小变为了close.png的大小?只是为何 2018-08-16 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180816
...的属性focus,例如在你的示例里,添加如下代码即可。 this.TextArea.focus = false; 2025-10-10 0 0 分享 微博 QZONE 微信 LayaAir小牛 赞同来自: 我这里测试是可以,这是录制的视频,使用的是最新版本3.3.2,您可以上传一个demo以便更方便的...
来源: Laya_社区 发布时间: 20250930
.../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
...,求解惑 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
...: 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
...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
...); 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
... 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
...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
...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