大约有 1,584 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
缓存清除方法clearTextureRes Loader.clearTextureRes=function(url){ url=URL.formatURL(url); var arr=laya.net.Loader.getAtlas(url); var res=arr ? laya.net.Loader.getRes(arr[0]):laya.net.Loader.getRes(url); ...
来源: Laya_社区 发布时间: 20171213
...= Laya.Sprite; var Texture = Laya.Texture; var Handler = Laya.Handler; var Res; var img; (function() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载成功后,通过回调方法...
来源: Laya2.0_文档 发布时间: 20210715
...ipContainer; var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../res/guide/help6.png", tipx: 200, tipy: 250 }, { x: 883, y: 620, radius: 100, tip: "../../res/guide/help4.png", tipx: 730, tipy: 380 }, { x: 1128, y: 583, radius: 110, tip: "../../res/guide/help3.png", tipx: 900, tipy: 300 }];...
来源: Laya_示例 发布时间: 20251130
...打包,输出路径,为了以后看着舒服,设置未打包路径为bin/res,现在IED的UI显示,看着没啥问题, 第二部,写代码,加载资源,也没啥问题见图, 不过运行就完蛋了报错了,说找不到资源,见图所示说这个加载错误images/pulloutRadish/bgGame.jpg,,然...
来源: Laya_社区 发布时间: 20180119
...目开发更高效。let guideSteps = [ { x: 151, y: 575, radius:150, tip:"res/guide/help6.png", tipx:200, tipy:250 }, { x: 883, y: 620, radius:100, tip:"res/guide/help4.png", tipx:730, tipy:380 }, { x: 1128, y: 583, radius:110, tip:"res/guide/help3.png", tipx:900, tipy:300 } ], gameContainer, guide...
来源: Laya2.0_示例 发布时间: 20251130
....bgColor = "#232628"; this.showApe(); } showApe() { const monkey1Path = "./res/apes/monkey1.png", monkey2Path = "./res/apes/monkey2.png"; // 方法1:使用loadImage let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage(monkey1Path); // 方法2:使用drawTexture Laya.loader.load(mo...
来源: Laya2.0_示例 发布时间: 20251130
转换swf使用图集模式,在运行swf的时候报res/swf/image/2.png:未加载到该图片资源 2018-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 一点一滴 赞同来自: 你参考下官网的sw...
来源: Laya_社区 发布时间: 20180515
...写代码如下: ```typescript // 程序入口 class MaskDemo{ private Res:string; private img:Laya.Sprite; constructor() { Laya.init(1336,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载...
来源: Laya2.0_文档 发布时间: 20210715
ani.loadAtlas("res/atlas/ani/"+name+".atlas");这种方法一定会加载素材吗如果前面已经加载过了动画资源了 附件 : --> 2017-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - ...
来源: Laya_社区 发布时间: 20170831
...dth: 1280, height: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath;//这个就是截屏的图片地址,可以将图片生成到相册,也可以使用这个地址用来里显示 wx.saveImageToPhotosAlbum({ filePath:imagePath, success:function...
来源: Laya_社区 发布时间: 20190515