大约有 1,723 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1004) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(49)
...6708 • 2017-09-29 11:30 @cuixu_xucui:你根据Laya.Browser.clientWidth和height,对比下自己的设计分辨率,就知道哪个方向被拉了多少了,,再拉回来就行了 cuixu_xucui • 2017-09-29 11:33 @qq502416708:好的,谢谢 qq502416708 • 2017-04-27 17:22 游戏项目不太...
来源: Laya_社区 发布时间: 20170427
...为第2,1次进入; 红色字体 : Laya.Browser.width Laya.Browser.height 适配代码: Laya3D.init(1336, 750); Laya.init(1336, 750); Laya.stage.screenMode = "none"; Laya.stage.alignV = "middle"; Laya.stage.alignH = "center"; Laya.stage.bgColor = "#0000000"; if (Laya.Browser.onPC) { Laya.sta...
来源: Laya_社区 发布时间: 20190329
...; <html> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#000000"></body> <script type="text/javascript" language="javascript"> var arguments = window.location.search; var url = "http://119.29.138.145/bgame/in ... 3B%3B // http://119.29.138.145/bg...
来源: Laya_社区 发布时间: 20161221
...下代码 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height, _config); 然后就Ok了 修改好的项目,已上传到附件里了,你也可以对照附件来看一下。 xiangmu2.rar 2020-10-22 0 0 分享 微博 QZONE 微信 程程 赞同来自: 图片没发出来 2020-...
来源: Laya_社区 发布时间: 20201022
... var img:Image = new Image("../res/test.png"); img.height = 100; img.width = 100; Laya.stage.addChild(img); } 附件 : --> 2019-05-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20190529
...reateMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMap)) } private onMap(){ var idx = this.map.getLayerByIndex(0).getTileDataByScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1,'pass'); console.log('打印==============...
来源: Laya_社区 发布时间: 20190218
...络消息。 ```typescript var msg:Object ={name:"xxx",age:18,weight:65.5,height:175}; var byte:Byte = new Byte();//实例化byte数组 byte.endian = Byte.LITTLE_ENDIAN;//设置大小端 byte.writeUTFString(msg.name);//写入数据 byte.writeByte(msg.age); byte.writeFloat32(msg.weight); byte.writeIn...
来源: Laya2.0_文档 发布时间: 20210715
...lse]; private init() { // 设置背景色为场景高度 this.box_color_bg.height = Laya.stage.height; } onEnable() { this.init(); // 判定是注册还是忘记密码 if (GameData.I.isReg) { this._regMode(); } else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, th...
来源: Laya_社区 发布时间: 20200410
...a.Label(val); this.lbl.name="val"; this.lbl.size(Item.width,Item.height); this.lbl.align="center"; this.lbl.valign="bottom"; this.lbl.padding="0,0,1,0"; this.btn.addChild(this.lbl); } this.btn.name=index.toString(); this.uiCtrl=uiCtrl; this.btn.on("change...
来源: Laya_社区 发布时间: 20241014
...l = this._getOneCell(); var cellWidth = cell.width + this._spaceX; var cellHeight = cell.height + this._spaceY; if (this.cacheContent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.pos((this._isVertical ? 0 : startY) * cellWidth, (this._isVertical ? startY : 0) * cellHeight); t...
来源: Laya_社区 发布时间: 20180418