大约有 2,307 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1512) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya2.0_api(74) Laya3.0_文档(73) laya_api(70)
...800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一个动画 var ani:Animation = new Animation(); ani.loadAtlas("res/fighter.atlas"); ani.play(); ani.pos(400, 200); sp.addChild(ani); Laya.stage.on("keydown", this, onKeyDown); Stat.show(); } private fu...
来源: Laya2.0_文档 发布时间: 20200929
...ent.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 a 的 RESIZE 方法,这个是否正常? 引擎版本:Laya.version="1.7....
来源: Laya_社区 发布时间: 20181214
...d(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: ViewHeadViewTest = new ViewHeadViewTest(); //testUI.addChildAt(vhvt, 0); testUI.addChild(vhvt); vhvt.on(laya.events.Event.CLICK, this, (event: Laya.Event) => { console.log("为什么这里不进...
来源: Laya_社区 发布时间: 20170822
...相关的链接 提交 1 个回复 IM-许 赞同来自: 暂时已解决 AddChild上不要 AddChild到image上就可以了 2019-02-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 IM-许 相关问题 Layabox ...
来源: Laya_社区 发布时间: 20190227
...ew Box(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Box(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _child.bottom = 0 _parent.addChild(_child); 按理说 我设置了额child的bottom为0 应该是 靠底部对齐才对啊 为什...
来源: Laya_社区 发布时间: 20170222
...位置不正确问题 在loader资源完成的回调里首次 Laya.stage.addChild(new 页面1);然后调用laya.utils.Utils.getGlobalPosAndScale(Laya.stage); 打印缩放值, 移动端很大几率值是1,ios基本每次都是 这会导致首屏页面里的html元素调用 Laya.Utils.fitDOMElemen...
来源: Laya_社区 发布时间: 20170823
...方法如下: ```typescript //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))); //创建物理碰撞器 var staticCollider = box.addComponent(Laya.PhysicsCollider); //标记为触发器,取消物理反馈 staticCollider.isTrigger = ...
来源: Laya2.0_文档 发布时间: 20210715
...; this.progressBar = new ProgressBar("res/ui/progressBar.png"); Laya.stage.addChild(this.progressBar); 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.progress...
来源: Laya2.0_示例 发布时间: 20251209
...pe.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl); apesCtn.addChild(ape); } } 这种方法HBox布局不管用,是不是不能用graphics.drawTexture方法,如果用addChild方法加载Loader.getRes(picAy[i])这个数据,怎么写? 新手见笑了[/i] 2016-10-26 添加评论 ...
来源: Laya_社区 发布时间: 20161026
...BOX类 list.vScrollBarSkin =""; Laya.stage.addChild(list); list.array =this.arr; list.renderHandler =new Laya.Handler(this,this.updateItem); this.listArr.push(list); //----------------------------------------------------...
来源: Laya_社区 发布时间: 20190522