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

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

281. ide锚点问题,有点奇怪 [ 65%]

...有很多问题,帮忙看一下 问题状态 最新活动: 2018-06-04 10:50 浏览: 925 关注: 3 人 kezhiyu • 2018-06-04 10:51 前面是锚点为0,后面是锚点0.5, 要显示为前面那张图的样子,你需要重新设置x,y Nothing • 2018-06-04 10:54 @kezhiyu:你没理解我的意思...

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

282. setSubPixels画布擦除不掉 [ 65%]

...Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Laya.Context(); // let w = canvasInfo.w//tex.width; // let h = canvasInfo.h//tex.height;...

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

283. Label属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 65%]

...建各种文本效果并设置位置 createLabel("#FFFFFF", null).pos(30, 50); createLabel("#00FFFF", null).pos(290, 50); createLabel("#FFFF00", "#FFFFFF").pos(30, 100); createLabel("#000000", "#FFFFFF").pos(290, 100); createLabel("#FFFFFF", "#00FFFF").pos(30, 150); createLabel("#0080FF", "#00FFFF")...

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

284. [LayaAir3]调用renderTexture.getDataAsync且同时勾选camera的hdr或msaa,webgl必报错 [ 65%]

...rTexture = camera._getRenderTexture(); let out:Uint8Array = new Uint8Array(50 * 28 * 4); let pixels:Uint8Array = await renderTexture.getDataAsync(0, 0, 50, 28, out) as Uint8Array; let gl:WebGLRenderingContext | WebGL2RenderingContext = Laya.WebGLEngine.instance.gl; let errorCode:number = gl.getError...

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

285. 使用laya官方示例代码制作微信小游戏无法显示 [ 64%]

...tup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel("#FFFFFF", "#00FFFF").pos(30, 150); this.createL...

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

286. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 64%]

...ate(this,function(){     this.sprite.graphics.drawTexture(Texture1,0,0,50,50,null,1,"#FFFFF"); })); 2021-09-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 破空 相关问题 两个对象new了一个相同的对象,调用第一...

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

287. 鼠标交互-双指缩放(多点触控) [ 64%]

...new Sprite(); var w = 300, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(sp); sp.on(Event.MOUSE_DOWN, this, onMouseDown); } function onMouseDown(e) { var touches = e.touches; if (t...

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

288. TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 [ 64%]

...600,400); var sp:Laya.Sprite = new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.TimeLine(); timeLine.addLabel("0",delay).to(sp,{x:550},500,null,0); timeLine.addLabel("1",delay).to(sp,{y:350},500,null...

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

289. 计时器-延迟执行 [ 64%]

... 60; var button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } function onDecreaseAlpha1(e) { //移除鼠标单击事件 button1.off(Event.CLICK, this, onDecreaseAlph...

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

290. 生成的目录有问题 [ 64%]

...独的文件夹,统一放在了project下 Laya_Aaron • 2017-12-15 18:50 之前的项目出问题了吗 Laya_Aaron • 2017-12-15 18:50 你把那个错误的文件改成项目名试一下 Laya_Aaron • 2017-12-15 18:51 或者发给我 我看看 tuotuo1226 • 2017-12-15 18:59 试过了,没用...

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