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

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

471. Laya IDE横竖屏切换时,不断刷新 [ 63%]

...ew.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

472. 在使用资源版本控制时,URL.formatURL中有个bug [ 63%]

在使用资源版本控制时,URL.formatURL中有个bug public static function formatURL(url:String, base:String = null):String { if (!url) return "null path"; //如果是全路径,直接返回,提高性能 if (url.indexOf(":") > 0) return url; //自定义路径格式化 if (customFormat !=...

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

473. unity导出有动作的模型,加载时报错 [ 63%]

...tate (laya.d3.js:4313)     at Animator._parse (laya.d3.js:5160)     at Function._createNodeByJson (laya.d3.js:30554)     at Function._createNodeByJson (laya.d3.js:30543)     at Function._parse (laya.d3.js:30484)     at _onHierarchyInnerFirstLevResouLoaded (laya.d3.js:30971)     at Handle...

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

474. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 63%]

...Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setImg(cell.dataSource); }  function onLoaded(): void {      var...

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

475. 用unity插件导出lh格式文件,再代码中加载使用的问题 [ 63%]

...           Scene3D.load("res/laya-test.ls",Handler.create(null,function(sp:Scene3D):void{                 scene = Laya.stage.addChild(sp) as Scene3D;             }));   找到对应的示例代码了,但是编译报错。。。。用的是layaAir2.0   TypeE...

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

476. [LayaAir3]OPPO小游戏下图片地址无法加载 [ 63%]

...po技术客服给出解决方案: let self: any = this; this.btn.onClick(function () { (Laya.Browser.window as any).jsb.loadImage( "https://sh.mudgj.com/api/playe ... ot%3B, (info: any) => { var filePath = Laya.PAL.g.saveImageTempSync({ data: info.data, width: info.width, height: info.height, f...

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

477. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 63%]

...res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }...

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

478. 设置相机的skyboxMaterial无效 [ 63%]

...Laya.BaseMaterial.load("res/skyBox/skyBox.lmat", Laya.Handler.create(null, function (mat) { camera.skyboxMaterial = mat; // Laya.timer.frameLoop(1, this, function () { // mat.rotation += 0.1; // }); })); skyBox.zip 2018-10-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

479. Image属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 63%]

...创建出符合自己需要的图片。 **示例代码:** ```javascript (function() { var Stage = Laya.Stage; var Image = Laya.Image; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.align...

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

480. 为什么加载进度回调只调用了一次。下面有代码,求解答 [ 63%]

...oncat(loadArr),     // 加载完成回调     Laya.Handler.create(null,function(){         var logintest = new loginTestView().init();         Laya.stage.addChild(logintest);     }),     // 加载进度回调 {???为什么只调用了一次 || 进度不是持续调用的吗,...

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