大约有 406 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)
...源加载成功后,通过回调方法绘制图片并添加到舞台 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
开启WorkerLoader后透明图片会变暗 一些前提: 1.通过Laya.loader.load加载了一个lh文件2.lh文件包含了一个MeshSprite3D,使用了EffectMaterial材质3.材质内引用了一张透明度为80的图片4.加载前调用了Laya.WorkerLoader.enableWorkerLoader(); 效果: 不开...
来源: Laya_社区 发布时间: 20220525
...素,如何使其外边不能点击 laya怎么跨域加载图片 请问下loader如何强制加载一个文件,避免浏览器的缓存 Animation 的createFrames 使用已经加载的图集缓存动画失败 模型资源释放问题 小游戏项目 加载有中文的json文件 报错 问题状态...
来源: Laya_社区 发布时间: 20201130
... 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
...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_示例 发布时间: 20251130
..."; 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
...的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
...问题有两个方案可以解决: 第一个就是在destory的时候用Loader.clearRes清理下资源; 第二个就是更新的最新版本,默认通过Sprite3D的load加载的资源不缓存,在destory的时候就不会存在你描述的这个问题! 2016-12-17 0 0 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20161217
对图集 atlas和 png 加密后,应该怎么加载解密 直接 Loader.load( 'xxx.atlas' ) 加载成 buffer 解密吗,那 xxx.png 需不需要 load ? 2018-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20180309
Laya.loader.create 加载进度问题 我用Laya.loader.create加载.lh模型, function ModelManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = functi...
来源: Laya_社区 发布时间: 20180514