大约有 908 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0052 秒)
Laya_社区(457) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
...; 换成 Laya.stage.scaleMode = "showall"; testView.y = ___frame.height - testView.height 改成 testView.bottom =0; 用相对坐标,用那个计算会出错 2018-02-11 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 有测试地址吗 2018-02-11 0 3 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180211
..."); } var viewRect = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); var tMap = new Laya.TiledMap(); tMap.createMap("res/isometric_grass_and_water.json", viewRect, Laya.Handler.create(this, this._OnMapCreate), null, new Laya.Point(2 * 64, 2 * 32)); 附件 : --> 2019-01-02 添加评论...
来源: Laya_社区 发布时间: 20190102
...显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 使用CreateHeightMap脚本生成高度图的时候,高度图旋转了90°是什么原因? 使用高度图的时候 Cannot read property 'width' of undefined 实现创建一个盒子,盒子里面放置文案,文案超过盒子的...
来源: Laya_社区 发布时间: 20180513
...一片黑色得部分。如果直接使用Laya.Browser.width/Laya.Browser.height,文字和图片显示又太小了。请问有没有什么方法可以处理这个问题呢。 附件 : --> Test.zip com.ccp_.test_.release_.zip Test.zip 2019-07-09 1 条评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20190709
...,下面的才是实现你想要的效果的解决方案 private var _itemHeight:Number; private var _oldY:Number; private function onMuseHandler(type:Event,index:int):void { trace("type:" + type.type + "ddd--" + _list.scrollBar.value +...
来源: Laya_社区 发布时间: 20171204
...nt("div"); this.qrcode = new Laya.Browser.window.QRCode(div, { width: 100, height: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void {...
来源: Laya_社区 发布时间: 20180412
...is.LeadBody.getBounds(); this.LeadBody.pos(-this.bound.width/2,-this.bound.height/2);//设置动画位置 Laya.stage.addChild(this.LeadBody); 上面是代码 2018-03-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20180303
...onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png"; this.fontclp.sheet = "012345678...
来源: Laya3.0_文档 发布时间: 20251010
...。进入游戏初始化阶段的时候 设置宽高为 laya.stage.width,height 就好了 2021-03-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 NnNi 相关问题 2.0一不小心删了bin目录下的某个场景json文件。。竟...
来源: Laya_社区 发布时间: 20210305
...est-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } private var sp:Sprite; private function onLoadedMap():void { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000&quo...
来源: Laya_社区 发布时间: 20170525