• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 912 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)

711. 多行输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

...onAwake(): void { this.txtarea.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtarea.size(500, 200); //大小 this.txtarea.pivot(this.txtarea.width/2, this.txtarea.height/2); //轴心点 this.txtarea.text = "大家好,欢迎各位开发者使用LayaAir IDE,这里...

来源: Laya3.0_文档 发布时间: 20251010

712. l微信开放域无法显示,但是可以正常传数据 [ 63%]

...e; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口,请参考: https...

来源: Laya_社区 发布时间: 20200314

713. Laya.loader.load 教程代码出错 [ 63%]

....drawTexture(txture);             img.size(txture.width,txture.height);         }            } }    运行后在 LayaSample.max.js 692行提示异常if (!tex.loaded){ tex.once("loaded",this,this._textureLoaded,[tex,args]);  编辑了好几次,这个代码的功能...

来源: Laya_社区 发布时间: 20170918

714. TiledMap中的gridWidth|(块的宽度)是哪一部分啊? [ 62%]

...个地图块的大小 请在tiledMap加载完成后使用tileWidth和tileHeight获取单块地图的大小private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height),Handler....

来源: Laya_社区 发布时间: 20160717

715. IphoneX适配 [ 62%]

...; 0.01) { onIPhoneX = (Browser.clientWidth == 375 && Browser.clientHeight == 812) || (Browser.clientWidth == 812 && Browser.clientHeight == 375); } if (onIPhoneX) { //初始化引擎 Laya.init(Browser.clientWidth * Browser.pixelRatio, Browser.clientHeight * Browser.pixelRatio, WebGL)...

来源: Laya_社区 发布时间: 20180521

716. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 62%]

...dFinish() { // .......前面摄影机,猴子精灵相关操作忽略 var heightMap = Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh a...

来源: Laya2.0_文档 发布时间: 20210714

717. 图片居中的问题 [ 62%]

...片的中心点pivotX和pivotY为中心位置,即image.width/2,image.height/2,image的宽高需要自己手动设置或者通过getBounds获取。 2016-11-18 0 0 分享 微博 QZONE 微信 shaouXie 赞同来自: var bg = new Laya.Sprite(); bg.loadImage("res/bg-480x720.jpg"); Laya.stage.on(Laya...

来源: Laya_社区 发布时间: 20161118

718. 关于event中只读属性touches,问题,求解 [ 62%]

...ew Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); con...

来源: Laya_社区 发布时间: 20170519

719. 普通文本中文逗号导致异常换行 [ 62%]

...(txt); txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height-txt.textHeight) / 2; zkang5 • 2022-07-11 09:49 好的,谢谢

来源: Laya_社区 发布时间: 20220708

720. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 62%]

...t.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = new Handler(this, updateItem); Laya.stag...

来源: Laya2.0_文档 发布时间: 20210714