大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0054 秒)
...wd =new pwdDialog(); xgpwd.popup(true); Laya.Dialog.lock(true); Laya.stage.addChild(xgpwd); 文档api 说popup模式 还要lock设置 我都一一的试了都没用,这是怎么回事 2017-11-30 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 你设置这个了么closeDialogOnSide,...
来源: Laya_社区 发布时间: 20171130
...个group进行各种操作,比如各种animation/transform/removeChild/addChild等 2017-07-14 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: 可以通过getChildByName和getChildAt结合使用,需要注意的是,两个方法只能获取子节点,不能获取孙子节点 2017-07-14 ...
来源: Laya_社区 发布时间: 20170714
...ail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,怎么销毁,内存还是创建后的大小 2017-02-21 添加评...
来源: Laya_社区 发布时间: 20170221
...omething(); })(); function drawSomething() { sp = new Sprite(); Laya.stage.addChild(sp); //画多边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 60,100, 50, 100, 50,80, 40, 80, 40, 90, 30,90, 30, 80,20, 80,20,90,0, 90], "#ffff00"); } })(); 绘制出来的多边形无法闭合 附件 : --> 2017-1...
来源: Laya_社区 发布时间: 20171219
...018-01-02 17:37 OK,摸索了一下,可以实现了 2dname = Laya.stage.addChild(new Laya.Image("res/layabox.png")); Laya.timer.frameLoop(1, this, functionname); function functionname() { camera.viewport.project(warehouse1.transform.position, camera.projectionViewMatrix, _outPos); 2dnam...
来源: Laya_社区 发布时间: 20180102
...w Laya.Sprite(); reference.pos(0, 0); reference.size('100%', '100%'); this.addChild(reference); Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement,reference,0, 0,'100%','100%']); Laya.Utils.fitDOMElementInArea(videoElement,reference,0, 0,'100%','100%') } } 2018-11-2...
来源: Laya_社区 发布时间: 20181124
...,是不是就不能用open的方法,可是不用open方法的话能用addchild吗? 初学者 • 2023-05-17 10:26 如果想要监听屏幕旋转,需要怎么写呢 layabox小高 • 2023-05-17 10:30 多个问题请开多个帖子进行提问
来源: Laya_社区 发布时间: 20230516
...SelectColorDialog.super(this); this.name = 'SelectColorDialog'; Laya.stage.addChild(this); this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());然后我使用下面的代码来弹出对话框 var dialog = new SelectColorDialog(); dialog.show();...
来源: Laya_社区 发布时间: 20180325
... sp.pos(-300, -300) Laya.stage.addChild(sp);//把精灵显示到舞台 // <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p> ...
来源: Laya_社区 发布时间: 20190816
... init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delayShow() { let canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); ...
来源: Laya_社区 发布时间: 20230419