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

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

481. 加载-错误处理和进度 [ 77%]

...AirIDE让项目开发更高效。(function() { var Event = Laya.Event; var Loader = Laya.Loader; var Texture = Laya.Texture; var Handler = Laya.Handler; (function() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls = ["do not exist", "../../res/fighter/fighter.png", ...

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

482. 【紧急】clearRes清理缓存后,再加载图片会有延时显示问题 [ 77%]

...缓存后,再加载图片会有延时显示问题 我想咨询一下: loader.clearRes()清理指定资源地址的缓存后,用loader.load 加载不回来了吗?为何再次加载同一图片显示时有延迟?   http://m.infinistudio.cn/test/nestle/ 点击1,再点击2, 再点击1...

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

483. 如何动态添加Animator和加载AnimationClip并播放 [ 77%]

...的代码实现不了: var layaScene:Sprite3D = scene.addChild(Sprite3D.load("res/LayaScene/layaScene.lh")) as Sprite3D;       layaScene.once(Event.HIERARCHY_LOADED, this, function():void{       var meshSprite:Sprite3D=layaScene.getChildAt(0) as Sprite3D;       var animator:Animator = mes...

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

484. 动画-SWF动画 [ 77%]

....stage.width - MCWidth) / 2; mc.y = (Laya.stage.height - MCHeight) / 2; mc.load(SWFPath); } } new Animation_SWF();module laya { import MovieClip = Laya.MovieClip; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_SWF { private SWFPath: string...

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

485. layaair-cmd publish -h 报找不到universalify module错误 [ 77%]

...at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\fp005\AppData\Roaming\npm\node_modules\lay ir-cmd\node_modules\fs-extra\lib\fs\index.js:...

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

486. UNITY3D导出模型加载错误 [ 77%]

UNITY3D导出模型加载错误 laya.core.js:12371 Uncaught Error: LoaderManager:unknown file(http://127.0.0.1/layaair/myLaya3D1/bin/null path) extension with: 1. at LoaderManager.__proto._create (laya.core.js:12371) at LoaderManager.__proto.create (laya.core.js:12339) at Loader.Laya3D._onHierarchy...

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

487. skin加载url资源不会刷新 [ 77%]

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

488. 从网络上下载的BMP图片二进制数据后,如何赋值给 laya.ui.Image [ 77%]

...复 cuixueying 赞同来自:   直接像传递url地址一样,赋值给load方法即可。 2017-01-03 0 1 分享 微博 QZONE 微信 匿名用户 赞同来自: 我这边是想把许多图片压缩打包,然后从服务器传给手机端,不想用URL的方式来赋值给load。 有办法吗?...

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

489. 粒子系统-燃烧大地 [ 76%]

..., 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Burning_Ground.lh"));class Particle_BurningGround { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE...

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

490. 粒子系统-永恒之光 [ 76%]

..., 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Eternal_Light.lh"));class Particle_EternalLight { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; ...

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