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

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

191. cdn资源加载 [ 75%]

...的加载看一下 rgxianzhan • 2017-12-06 10:19 使用的加载方式是loader.load Monica • 2017-12-06 19:34 @rgxianzhan:你看下是否跨域了吧 rgxianzhan • 2017-12-07 18:57 @Monica:并不会报跨域,反而会报404。但是网页中确实可以打开

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

192. 微信小游戏报错 the .lh file root type must be Scene [ 75%]

...) at ResInfo.__proto.event (http://127.0.0.1:62629/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:62629/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:62629/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:62629/game/code.js:711:59) at L...

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

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

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),1...

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

194. 开启WorkerLoader后透明图片会变暗 [ 75%]

开启WorkerLoader后透明图片会变暗 一些前提: 1.通过Laya.loader.load加载了一个lh文件2.lh文件包含了一个MeshSprite3D,使用了EffectMaterial材质3.材质内引用了一张透明度为80的图片4.加载前调用了Laya.WorkerLoader.enableWorkerLoader(); 效果:   不开...

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

195. 淘宝创意互动小程序如何加载外部资源 [ 75%]

...素,如何使其外边不能点击 laya怎么跨域加载图片 请问下loader如何强制加载一个文件,避免浏览器的缓存 Animation 的createFrames 使用已经加载的图集缓存动画失败 模型资源释放问题 小游戏项目 加载有中文的json文件 报错 问题状态...

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

196. 分享:改变图片皮肤,保持图片原样宽高显示 [ 75%]

... var image:Image; public function LayaAirDemo() { Laya.init(800,600); Laya.loader.load(["bg.jpg","logo.png"],Handler.create(this,onLoaded)); } private function onLoaded():void { image=new Image(); image.skin="logo.png"; Laya.stage.addChild(image); Laya.stage.on(Event.CLICK,this,onClick); } private f...

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

197. UI-Input [ 75%]

...2).png", "../../res/ui/input (3).png", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。 })(); function onLoadComplete() { for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stag...

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

198. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 75%]

...";  var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0);  Laya.stage.ad...

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

199. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 75%]

...的atlas,调用clearRes无法卸载资源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统...

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

200. 3d模型释放后重新加载异常 [ 75%]

...问题有两个方案可以解决: 第一个就是在destory的时候用Loader.clearRes清理下资源; 第二个就是更新的最新版本,默认通过Sprite3Dload加载资源不缓存,在destory的时候就不会存在你描述的这个问题! 2016-12-17 0 0 分享 微博 QZONE ...

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