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

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

861. Laya2.7.0 beta cannon bug [ 70%]

...2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug Laya2.0.1动态批处理的bug? EffectAnimation Bug 问题状态 最新活动: 2020-11-02 15:34 浏览: 4091 关注:...

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

862. sprite 设置为静态变量后,无法从舞台移除 [ 70%]

...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.utils.Stat; import laya.webgl.WebGL; public class HtmlDemo { private static var sp:Sprite; public function HtmlDemo() { Laya.init(800, 480,WebGL); Stat.show(); sp=new Sprite(); sp.loadImage("background.jpg...

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

863. Laya IDE中怎么使用matter,js? [ 70%]

...。 轻狂书生杀 • 2018-06-01 10:46 <script src='libs/matter.js' loader='laya'></script> <script src='libs/LayaRender.js' loader='laya'></script> 我这样子不行,报了错Uncaught TypeError: Cannot read property 'Engine' of undefined

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

864. 分包项目, 加载js时报错 [ 70%]

...th (AA.max.js:674)     at ResInfo.__proto.event (AA.max.js:453)     at LoaderManager.__proto._endLoad (AA.max.js:9492)     at Loader.onLoaded (AA.max.js:9469)     at EventHandler.__proto.runWith (AA.max.js:674)     at Loader.__proto.event (AA.max.js:453) 2017-07-26 添加评论 免费帖 -...

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

865. 2.13版本 官方救命啊,关于3D特效的资源释放 [ 70%]

... 2022-10-10 17:25 官方大大你好,我先说明一下流程: 通过 Laya.loader.create(url, complete); 加载 3D 特效文件 并且缓存 源对象 , 当前或下次 直接从源对象 克隆一个 3D特效 出来 进行 添加到场景里 当怪物全部死亡时 会进行特效文件的回收 ...

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

866. ide编辑器中button的skin设置问题。 [ 70%]

... cuixueying 赞同来自: 如果加载的是单张图片,如你所写,Loader的类型为Image,而非图集ATLAS,请修改type:Loader.IMAGE 2017-03-06 0 1 分享 微博 QZONE 微信 slayerma 赞同来自: load这个不报错了,但是skin那个还是找不到,是否需要预加载图片...

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

867. 关于创建Sprite获取大小 [ 70%]

...调。这个是异步获取,如果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _th...

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

868. timeline播放完成Bug [ 70%]

...32628"; const monkey1Path = "https://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.Ti...

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

869. UI-Tab [ 70%]

...WALL; Laya.stage.bgColor = "#232628"; Laya.stage.bgColor = "#3d3d3d"; Laya.loader.load(skins, Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { var tabA = createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB = createTab(skins[1]); tabB.pos...

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

870. ani如何实现预加载呢? [ 70%]

...第一次没缓存的情况下 动画只会播放一半.  附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微...

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