大约有 30 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0026 秒)
... 在js代码中,let 是什么意思 IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 请问list如何判断已经拉到底部了 资源管理器中的图片个别显示不打包,是不是不能打包到图集中了?这个是什么原因造...
来源: Laya_社区 发布时间: 20170909
...立即加载 for (int i = 0; i < 10; ++i) { var url:String = "res/xxx" + i + ".png"; Laya.loader.load(url); } // 先Image var img:Image = new Image(); img.skin = "res/test1.png"; img.pos(100, 100); // 再Html var html = new HTMLDivElement(); html.innerHTML = "<img src='res/...
来源: Laya_社区 发布时间: 20181219
...接口的第三个参数来缓存的,如果缓存后用 Laya.loader.clearRes(url,true)这样卸载资源,再次缓存同名动画,播放动画就会闪烁。如果用Laya.loader.clearRes(url,false)卸载,播放动画就不会显示,除非缓存之前先Laya.Animation.clearCache,这样就...
来源: Laya_社区 发布时间: 20161128
Bitmap引用计数的问题 var image1:Image = "res/test.png"; var image2:Image = "res/test.png"; 这时候image1.source.bitmap.useNum的值不应该是2吗?可是实际上输出的是1。不知道是不是我的理解有问题还是LoaderManager.load在加载第二张图片直接完成导致useN...
来源: Laya_社区 发布时间: 20170420
...个文件夹A里比如,在项目设置里把资源发布目录改成bin/A/res/atlas,把index.html目录改成bin/A, 发布微信小游戏生成的version.json文件有问题,内容是"A/res/atlas/xxx.png":"A/res/atlas/xxx-xxxxxx.png" 正确的应该是 "res/atlas/xxx.png":"res/atlas/xxx-xxxxx...
来源: Laya_社区 发布时间: 20190603
...n(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage.addChild(Gam...
来源: Laya_社区 发布时间: 20181029
... //设置版本控制类型为使用文件名映射的方式 ResourceVersion.type = ResourceVersion.FILENAME_VERSION; //加载版本信息文件 ResourceVersion.enable("version.json", Laya.Handler.create(this, LoadRes)); 这些档案变成这样 filena...
来源: Laya_社区 发布时间: 20181127
...e(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); picture.on(Event.MOUSE_DOWN...
来源: Laya_社区 发布时间: 20181022
...库是要在主程序之前引用还是在之后引用呀 <script src='res/protobuf.js' type='text/javascript'></script> <script src='res/bytebuffer.js' type='text/javascript'></script> <script src='LayaSample.max.js' loader='laya'></script> 有没有人能提供p...
来源: Laya_社区 发布时间: 20170218
官网3d示例的资源在哪里下载? 是指res下的模型资源。 上面官网地址已失效,404,求下载地址。。 社区问答里有类似的,但也没见到解决? 附件 : --> 2019-04-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20190422