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

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

821. 区块地图-等角地图 [ 67%]

...ic_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Laya.Handler.create(this, this.mapLoaded), null, new Point(1600, 800)); } onStageClick() { let p = new Laya.Point(0, 0); // 通过屏幕坐标来获取选中格子的索引 this.layer.getTilePositionByScreenPos(Laya....

来源: Laya2.0_示例 发布时间: 20251209

822. laya.ui.ProgressBar [ 67%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...

来源: Laya2.0_api 发布时间: 20190513

823. 技术文档svg不可以使用 [ 67%]

...:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +'<foreignObject width="100%" height="100%">' +'<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' +'<em>I</em> like ' +'<span style="color:white; text-shadow: 0px ...

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

824. laya.renders.Render_API3.0 [ 67%]

...nimationFrame vsyncTime Constructors constructor new Render(width: number, height: number, mainCanv: HTMLCanvas): Render Defined in laya/renders/Render.ts:59 初始化引擎。 Parameters width: number 游戏窗口宽度。 height: number 游戏窗口高度。 mainCanv: HTMLCanvas Returns Render Pro...

来源: Laya3.0_api 发布时间: 20231115

825. iphoneX 用微信打开游戏,,做新手引导 抠图有问题,,, [ 67%]

...kAlpha; this.maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, maskColor); this.guideContainer.addChild(this.maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 this.interactionArea = new Sprite(); //设置叠加模式 this.interactionAr...

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

826. textInput的单行输入&多行输入(ActionScript-LayaAir基础篇(AS3)-文本) [ 67%]

...位置。 textInput.width = 300;//设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 textInput.bgColor = "#c30c30"; Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } private function Text_InputMultiline():void { var textInput:TextInput = new ...

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

827. 官方新手游戏引导示例中关于hit和unHit的使用疑问 [ 67%]

...a = new HitArea(); hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.hitArea = hitArea; guideContainer.mouseEnabled = true; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000");我的理解是给父容器guideContainer(包...

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

828. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 67%]

...empTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; }  if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(system.width, system.height); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(...

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

829. Sprite.loadImage在Android平台无法卡死,web和iOS平台正常 [ 67%]

... var sp = new Laya.Sprite(); sp.loadImage(url, 0, 0, widget.width, widget.height); //从网络加载图片生成Sprite widget.removeChildren(); // 防止重复提交,把之前生成的头像先删除 widget.addChild(sp); // 添加为只节点 }; 2017-12-29 添加评论 免费帖 --> 分享 微博 ...

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

830. 在 tiledmap 插入一个精灵在上面 [ 67%]

...teMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height),   Laya.Handler.create(this,this.loadedMap)); }   loadedMap(){   this.sp=new Laya.Sprite();   this.sp.graphics.drawRect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByIndex(1);   console.info(m...

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