大约有 370 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(320) Laya2.0_文档(33) Laya3.0_文档(8) Laya2.0_示例(3) Laya_示例(3) Laya3.0_api(2) Laya2.0_api(1)
...链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("res/atlas/test0.png"); ape = new Sprite(); var matrix:Matrix = new Matrix(); matrix.a = -1; ...
来源: Laya_社区 发布时间: 20170221
...前场景下的资源销毁掉呢 Laya.loader.clearTextureRes("res/fighter.atlas") 这一步 销毁的是图集所保护的所有资源吗?还是说 需要 把所有用到的小图地址都销毁一遍 比如 Laya.loader.clearTextureRes("res/re1.jpg"); Laya.loader.clearTextureRes("res/re2.jpg"); L...
来源: Laya_社区 发布时间: 20171122
...bitmap属性上锁。 ```js init() { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Laya.Handler.create(this,this.onComplete)); } onComplete(){ //获取图集中的一个单图 var a = Laya.loader.getRes('comp/button.png'); //通过单图的bitmap对图集加锁 a.bitmap.lock = true; } ```
来源: Laya2.0_文档 发布时间: 20210715
...发更高效。let PathBg = "res/bg2.png", PathFly = "res/fighter/fighter.atlas"; class Loader_ClearTextureRes { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser...
来源: Laya2.0_示例 发布时间: 20251130
...oad resource: net::ERR_FILE_NOT_FOUND [warn]Retry to load: D:/demo/bin/res/atlas/comp.json Failed to load resource: net::ERR_FILE_NOT_FOUND [error]Failed to load: D:/demo/bin/res/atlas/comp.json 2017-03-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170328
...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); if (res.bitmap){ if (Render.isConchApp){ ...
来源: Laya_社区 发布时间: 20171213
...script private function init():void { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Handler.create(this,onComplete)); } private function onComplete():void{ //获取图集中的一个单图 var a:Texture = Laya.loader.getRes('comp/button.png'); //通过单图的bitmap对图集加锁 a.bitmap...
来源: Laya2.0_文档 发布时间: 20210715
...on文件 我已经确定了,已经打包。但是我的res目录下面的atlas下面只有.rec .atlas .png文件,但是没有json??? 2018-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 ...
来源: Laya_社区 发布时间: 20180412
...是也能显示! blackMan.json 是一个小黑人 ani not found: res/atlas/default/blackMan.json public static readonly BLACK_MAN = "res/atlas/default/blackMan.json"; this.aniTemp.loadAtlas(ResourcesManager.BLACK_MAN, null, ResourcesManager.BLACK_MAN); json 文件是 {"frames":{...
来源: Laya_社区 发布时间: 20170824
... ```typescript private init():void { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Laya.Handler.create(this,this.onComplete)); } private onComplete():void{ //获取图集中的一个单图 var a = Laya.loader.getRes('comp/button.png') as Laya.Texture; //通过单图的bitmap对图集加锁 ...
来源: Laya2.0_文档 发布时间: 20210715