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

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

471. 如何实现3d遮罩效果? [ 72%]

...; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.RenderTexture; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import thr...

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

472. vivo小游戏分包指南(TypeScript-小游戏适配文档-vivo小游戏) [ 72%]

...分包加载状态。示例代码如下: ```javascript loadTaskA.onProgressUpdate(res => { console.log('sub1Name 下载进度', res.progress) console.log('sub1Name 已经下载的数据长度', res.totalBytesWritten) console.log('sub1Name 预期需要下载的数据总长度', res.totalBytesExpect...

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

473. 滤镜-发光滤镜 [ 72%]

...; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var apePath = "../../res/apes/monkey2.png"; var ape; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENT...

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

474. 小米快游戏分包指南(TypeScript-小游戏适配文档-小米快游戏) [ 72%]

...分包加载状态。示例代码如下: ```javascript loadTaskA.onProgressUpdate(res => { console.log('sub1Name 下载进度', res.progress) console.log('sub1Name 已经下载的数据长度', res.totalBytesWritten) console.log('sub1Name 预期需要下载的数据总长度', res.totalBytesExpect...

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

475. 关于list空间的问题 [ 72%]

...的 var data = []; for (var i = 0; i < 1; ++i) {     data.push("../../res/ui/listskins/1.jpg");     data.push("../../res/ui/listskins/2.jpg"); } this._ui.serverList.vScrollBarSkin = ""; this._ui.serverList.selectHandler = new Handler(this, this.onSelect); this._ui.serverList.renderHandler = n...

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

476. UI-ComboBox [ 72%]

...Box; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var skin = "../../res/ui/combobox.png"; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOW...

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

477. 文本-位图字体 [ 72%]

...loadFont() { var bitmapFont = new BitmapFont(); bitmapFont.loadFont("../../res/bitmapFont/test.fnt", new Handler(this, onFontLoaded, [bitmapFont])); } function onFontLoaded(bitmapFont) { bitmapFont.setSpaceWidth(10); Text.registerBitmapFont(fontName, bitmapFont); createText(fontName); } function cre...

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

478. 微信小游戏中如何加载XML文件? [ 72%]

微信小游戏中如何加载XML文件? 使用Laya.loader.load("res/xml/info.xml", Laya.Handler.create(null, onLoadedXML),null,Laya.Loader.XML);来加载xml文件,在网页中能正常加载,在微信小游戏中显示 request:fail invalid url "res/xml/info.xml"。 2018-05-19 添加评论 ...

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

479. OPPO小游戏分包指南(TypeScript-小游戏适配文档-OPPO小游戏) [ 72%]

...分包加载状态。示例代码如下: ```javascript loadTaskA.onProgressUpdate(res => { console.log('sub1Name 下载进度', res.progress) console.log('sub1Name 已经下载的数据长度', res.totalBytesWritten) console.log('sub1Name 预期需要下载的数据总长度', res.totalBytesExpect...

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

480. 打包apk无法运行 [ 72%]

...ndException: flashscreen1.jpg W/System.err( 5275):    at android.content.res.AssetManager.openAsset(Native Met hod) W/System.err( 5275):    at android.content.res.AssetManager.open(AssetManager.ja va:316) W/System.err( 5275):    at android.content.res.AssetManager.open(AssetManager.ja va:290) ...

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