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

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

131. 请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 [ 72%]

...aphic  drawTextures () method  public function drawTextures(tex:Texture, pos:Array):void批量绘制同样纹理。 Parameters tex:Texture — 纹理。   pos:Array — 绘制次数和坐标。   请教第二个参数pos的具体格式   是带着s的drawTextures,批量绘制同样纹理。...

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

132. AS版的movieclip加载swf报错,js版本的可以加载。 [ 72%]

...()方法和play()方法都报错。 报错:TypeError: _data is null_data.pos=this._Pos; 2016-06-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 您好,gotoStop()方法和p...

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

133. 如何往TiledMap格子内追加精灵 [ 71%]

...eSprite(no){ var flower = new Sprite(); flower.loadImage(texture1); flower.pos((0 + no) * 99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flower.scaleY=1.1; Laya.timer.once(100, this,function() { flower.scaleX=1; flower.scaleY=1; alert(...

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

134. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...最大时间(毫秒)限制。默认值是Infinity,意味着getCurrentPosition()直到位置可用时才会返回。 maximumAge —— 代表可返回的可用缓存位置的最大时限。如果设置为0,意味着设备不使用缓存位置,始终尝试获取实时位置。如果设置为...

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

135. graphics 绘制线条粗细不一样 [ 71%]

... Sprite();             this.addChild(sp);             sp.pos(200, 200);             sp.graphics.drawRect(0, 0, 200, 200, "#ff0000", "#000000", 2);   附件 : --> 2018-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

136. 骨骼动画-适配版Spine [ 71%]

...templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play); this.play(); } onError() { console.log("parse error"); } play() { console.log("1111111111"); i...

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

137. Sprite-切换纹理 [ 71%]

...d() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹...

来源: Laya_示例 发布时间: 20251130

138. 2D物理-碰撞过滤器 [ 71%]

...is.preMovementX = movementX; this.preMovementY = movementY; this.curTarget.pos(Laya.stage.mouseX, Laya.stage.mouseY); } mouseUp() { Laya.stage.off(Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.off(Event.MOUSE_UP, this, this.mouseUp); Laya.stage.off(Event.MOUSE_OUT, this, this.mouseUp); let rig...

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

139. [BUG]刚体约束问题,移动后约束混乱! [ 71%]

...ya.PrimitiveMesh.createPlane(40, 40, 40, 40)));     plane.transform.position = new Laya.Vector3(0, -2.00);     var planeMat = new Laya.BlinnPhongMaterial();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {      ...

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

140. 屏幕适配的缩放模式详解(ActionScript-2D基础篇(AS3)-屏幕适配) [ 71%]

...ALE_EXACTFIT+") ";         txt.bold = true;         txt.pos(10, 350);         txt.fontSize = 60;         txt.color   = "#fff000";         Laya.stage.addChild(txt);         }            } } ``` ### 二、fixedheight模式 ​ fixedhe...

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