大约有 2,991 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0108 秒)
Laya_社区(2265) Laya2.0_文档(235) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(34)
...信息 wx.getOpenDataContext({url:"",data:{type:"resizeShared",width:Laya.stage.width,height:Laya.stage.height,matrix:Laya.stage._canvasTransform},isLoad:false}); //显示开发数据的内容,需要延迟处理,因为主域跟开发数据域同时初始化,可能碰巧赶上主域先调用...
来源: Laya_社区 发布时间: 20180310
..., 5); this.firstSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.MouseWheel); this._rootSp.hitArea = new Laya.Rectangle(0, 0, 10000, 10000) this._rootSp.addChild(this.firstSp); Laya.stage.addChild(this._rootSp); } private MouseWheel(e: Laya.E...
来源: Laya_社区 发布时间: 20190314
...n = "res/test.png"; image2.skin = "res/test.png"; Laya.stage.addChild(image1); Laya.stage.addChild(image2); 加载完了后再执行一次 Laya.loader.clearRes("res/test.png"); 这时候两张图片的纹理数据都被清除了,引用计数没有用啊,不应该是...
来源: Laya_社区 发布时间: 20170420
...LDivElement; public function HelloLaya() { Laya.init(600, 600,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(50,50,300,300,null,"#0000FF",2); Laya.stage.addChild(sp); html=new HTMLDivElement(); html.innerHTML="<span>哈哈哈哈哈</span>"; Laya.st...
来源: Laya_社区 发布时间: 20170905
...钮被挪到设计区域外之后 ,就响应不了点击事件了。但stage可以。请问下应该如何做全屏适配?附件是一个demo 附件 : --> ViewAdapterTest.zip 2018-09-21 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180921
...e.xml = 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
...完毕,此方法只执行一次 */ onAwake(): void { this.txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txt.size(500, 30); //大小 this.txt.pivot(this.txt.width/2, this.txt.height/2); //轴心点 this.txt.text = "大家好,欢迎各位开发者使用LayaAir I...
来源: Laya3.0_文档 发布时间: 20251010
...1/4多一点, let htmlCanvas: Laya.HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); let base64Img = htmlCanvas.toBase64("image/png", 0.8); 而 关闭视网膜屏幕或者在屏幕像素...
来源: Laya_社区 发布时间: 20201019
...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴缩放值(会...
来源: laya_api 发布时间: 20170929
...,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以...
来源: laya_api 发布时间: 20170929