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

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

541. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 67%]

# 设置遮罩 > LayaAir的遮罩,可以设置一个对象(支持位图和矢量图),然后根据对象形状进行遮罩显示。 > ## 一、遮罩API介绍   遮罩属性位于[laya.display.Sprite](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&catego...

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

542. 【严重】layaAir的存图代码(htmlCanvas)在安卓微信浏览器的色差问题 [ 67%]

【严重】layaAir的存图代码(htmlCanvas)在安卓微信浏览器的色差问题 我的存图代码: var htmlCanvas:HTMLCanvas = Laya.stage.drawToCanvas(750, 4000, 0, 0);             var canvas = htmlCanvas.getCanvas(); var base64 = canvas.toDataURL("image/png");   但是在安卓...

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

543. skin加载url资源不会刷新 [ 67%]

skin加载url资源不会刷新 代码如下           Laya.loader.clearRes("http://10.144.1.20:8081/files/ ... 6quot;);         var test: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;);         Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handl...

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

544. 压缩纹理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...在iPhone6以上(包含)都支持ASTC,6以下可以选择PVRTC2。 LayaAir 3.0引擎及工具也更新了这一情况,全面支持ASTC标准,也仍然支持ETC1和ETC2_RGB,ETC2_RGBA,同时不再支持PVR。 所以我们建议使用ASTC 6x6作为安卓和iOS统一的压缩纹理格式...

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

545. 请问怎么监听在IDE中创建的UI中资源的加载进度呢 [ 67%]

...了整个游戏界面,然后通过loader去加载界面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听的当前加载进度不太对,我...

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

546. drawToCanvas绘制显示不全 [ 67%]

...screen.height + 'px';         style.width = Math.floor(screen.height / Laya.stage.height * Laya.stage.width) + 'px';         document.body.appendChild(this.nativeImg)     }     onEnable() {         Laya.timer.once(1000, this, this.delayShowImg);     }     delayShowImg() {     ...

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

547. 如何从代码中创建UI,progressbar [ 67%]

...n="commonUI/anniu05a.png" progressBar.pos(100,100); progressBar.value=0.5; Laya.stage.addChild(progressBar); 后台: Failed to load resource: net::ERR_FILE_NOT_FOUND(FILE///..../bin/commonUI/anniu05a$bar.png) [warn]Retry to load:/......./bin/commonUI/anniu05a$bar.png 但能显示出来, 2.skin...

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

548. 调用创建微信授权按钮时,授权按钮有时候显示有时候不显示 [ 67%]

...时,授权按钮有时候显示有时候不显示 在同一手机上,laya调用创建微信授权按钮,代码执行了没有异常情况,有时候表示授权按钮,有时候不显示,以下是我创建按钮代码 var button:Object = wx.createUserInfoButton(             { ...

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

549. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 67%]

# LayaAir和原生Dom 在开发项目中,开发者难免遇到dom元素支持,但是LayaAir中不支持或者支持的不完善。那么本节我们就来看下在开发中遇到的一些技巧。 ### LayaAir之SVG 什么是svg?可能大部分开发者听说过这个名词,或者也知道它...

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

550. Invalid character: '`' Stack:[native code]异常 [ 67%]

...https://lib/WAGame.js:1:604471    找了下引擎的源代码,发行在laya.core.js第12850行有2个`符号,不知道是不是这个引起的异常? if (!this._data){                     this._data=data;                     if (data.meta && da...

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